Remove device content
Remove one item from the device’s loop or fixed list.
Remove one item from the device’s loop or fixed 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/deleteGenerated 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/delete
Method
POST
Path Parameters
Prop
Type
Serial number of a device the caller can access.
Choose the loop or fixed 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.
Get the revision from List device content first. It applies to that device and list only.
Confirm the device, list, and taskKey before submitting. The response returns the removed item’s taskKey.
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. |
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_delete_device_content with Dot Assistant.
Did this solve your problem?
Join our community