Scheduled Mutes API
Contents
Create a scheduled mute
POST
/v2/schedules/
Path Parameters
Name | Type | Description |
---|---|---|
name* | String | A name that uniquely identifies this scheduled mute. |
start_time* | String | A 24-hour time string at which the scheduled mute will begin. |
duration* | String | Mute time in minutes. |
timezone | String | The timezone string for this scheduled mute’s start time. Valid values are “UTC-12”...”UTC-1”, “UTC”, “UTC+1”...”UTC+14”. Defaults to “UTC” if not specified. |
repeat | String | The list of days at which the scheduled mute will repeat on. Becomes a one-time scheduled mute if not specified. Valid values are “mon”, “tue”, “wed”, “thu”, “fri”, “sat” and “sun”. |
Request format:
Curl example
Creates a scheduled mute named “Mute on weekends” that starts at 12 AM in timezone UTC+2, with a mute duration of 24 hours, and repeats every Saturday and Sunday.
Search scheduled mutes
GET
/v2/schedules/?
Returns a JSON object containing information on scheduled mutes matching the search query. Returns all scheduled mutes if the parameter is left empty.
Path Parameters
Name | Type | Description |
---|---|---|
name | String | Format: The scheduled mute name to search for. Can specify multiple scheduled mute names to search for more than 1. Performs an
will return info on both |
id | String | Format: The scheduled mute ID to search for. Can specify multiple scheduled mute IDs to search for more than 1. Performs an
will return info on both |
duration | String | Format: Searches for scheduled mutes by their duration. Can specify multiple durations to search for. Performs an
will return scheduled mutes with a 10-minute duration or a 30-minute duration. |
start_time | String | Format: Searches for scheduled mutes by their start time. Can specify multiple start times to search for. Performs an OR operation so a query such as
will return scheduled mutes that start at either 12 PM or 8 PM. |
timezone | String | Format: Searches for scheduled mutes by their timezone. Can specify multiple time zones to search for. Performs an OR operation so a query such as
will return scheduled mutes that have either UTC+2 or UTC-14 time zones. |
repeat | String | Format: Searches for scheduled mutes by their repeat days. Can specify multiple repeat days to search for. Performs an OR operation so a query such as &repeat=sun&repeat=thu will return scheduled mutes that repeat on either Sunday or Thursday. |
page | String | Format: The page number to query. Used if there are more items that can be displayed in a single request (default: 1). |
max | String | Format: The maximum number of items to display. Limit of 100 (default: 100). |
Curl example:
Specifying multiple fields performs an OR
operation and returns scheduled mutes that match either criterion.
Search information on a single scheduled mute
GET
/v2/schedules/<scheduled_mute_id>/
Returns information on a single scheduled mute identified by <scheduled_mute_id>
.
Curl example:
Obtain information on the scheduled mute identified by the ID 123-456-789
.
Update a scheduled mute
PUT
/v2/schedules/<scheduled_mute_id>/
Updates the attributes of a scheduled mute identified by <scheduled_mute_id>
.
Path Parameters
Name | Type | Description |
---|---|---|
name | String | A name that uniquely identifies this scheduled mute. |
start_time | String | A 24-hour time string at which the scheduled mute will begin |
dduration | String | Mute time in minutes. |
timezone | String | The timezone string for this scheduled mute’s start time. Valid values are “UTC-12”...”UTC-1”, “UTC”, “UTC+1”...”UTC+14”. Defaults to “UTC” if not specified. |
repeat | String | The list of days at which the scheduled mute will repeat on. Becomes a one-time scheduled mute if not specified. Valid values are “mon”, “tue”, “wed”, “thu”, “fri”, “sat” and “sun”. |
Curl example:
Updates the start time and timezone of the scheduled mute with the id 123-456-789.
Each field is optional and only the specified fields are updated.
Delete a scheduled mute
DELETE
/v2/schedules/<scheduled_mute_id>/
Deletes a scheduled mute identified by <scheduled_mute_id>
.
Curl example:
Delete the scheduled mute identified by the ID 123-456-789
.
Last updated