Reorder loop content
Move an item to a new position within the loop list.
Move an item to a new position within the loop list.
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
POST
/api/authV2/open/device/:deviceId/tasks/:taskType/:taskKey/orderGenerated 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/order
Method
POST
Path Parameters
Prop
Type
Serial number of a device the caller can access.
Loop list
Target item key returned by the list endpoint.
Request Schema
Prop
Type
Latest revision from the device content list. A string of 64 lowercase hexadecimal characters.
Zero-based destination. The maximum is the current item count minus one.
Get the revision from List device content first. It applies to that device and list only.
Response Schema
Prop
Type
Key of the affected item.
List revision after the operation. Use it for the next update.
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_POSITION | Use a position within the loop list. |
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_order_loop_content with Dot Assistant.
Did this solve your problem?
Join our community