Change a fixed schedule
Set the start, duration, and daily, weekly, or one-time recurrence of a fixed item.
Set the start, duration, and daily, weekly, or one-time recurrence of a fixed item.
Quick Guide
Prerequisites
- In the Playground, sign in to Dot and select Authorize. In a script, use a personal API key or an OAuth access token as a Bearer token.
- Get the serial number for a device you can control.
Request Examples
In Request Body, select the start and end times. For a repeating schedule, select weekdays. Selecting all or none means every day.
/api/authV2/open/device/:deviceId/tasks/:taskType/:taskKey/scheduleGenerated Code
Before running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Response Example
HTTP 200
{
"taskKey": "q3Ck109u5Lfm",
"revision": "fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210"
}Troubleshooting
Endpoint
/api/authV2/open/device/:deviceId/tasks/:taskType/:taskKey/schedule
Method
POST
Path Parameters
Prop
Type
Request Schema
Prop
Type
Parameters
Get the revision from List device content first. It applies to that device and list only.
This saves the list change. To show an existing item now, use Display a specific item.
Response Schema
Prop
Type
Status Codes
| HTTP status | What to do |
|---|---|
400 | Check the values of required path, query, or body fields. |
401 | Renew web authorization or check your API key or access token. |
403 | Check that your account can access this device. |
404 CONTENT_TASK_NOT_FOUND | The item was not found. Read the list again and check the taskKey. |
400 CONTENT_INVALID_SCHEDULE | Use a date and start time that exist in the device timezone. |
409 CONTENT_LIST_CHANGED | The list changed. Use List device content to obtain a new revision and confirm the target before retrying. |
400 CONTENT_LAYOUT_UNSUPPORTED | Manage combined items in the Dot app. |
404 | Check that the device serial number is registered. |
429 | Wait for the number of seconds in Retry-After. See API rate limits. |
Use dot_update_fixed_content_schedule with Dot Assistant.
Did this solve your problem?
Join our community