Update content
Change inputs on an existing device item, such as a title, selection, or saved third-party configuration.
Change inputs on an existing device item, such as a title, selection, or saved third-party configuration.
Text, Image, and Canvas items each have a dedicated update endpoint. Find the matching template in Content Studio and add it to the device, then use one of the endpoints below to update the display.
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
/api/authV2/open/device/:deviceId/tasks/:taskType/:taskKey/settingsGenerated 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/settings
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.
Only the keys in settings change. The example updates the content field of a note. Check the actual input names and values with Read content details. To update only a connection, send an empty settings object. For image inputs, use an uploaded image file record from your account.
This saves the list change. To show an existing item now, use Display a specific item.
For an image field, use the object returned by Upload a content image.
When details return supportsSavedConnection: true, use connection to choose a saved profile, or send {"mode":"custom","value":"YOUR_PROVIDER_VALUE"} from your own script to supply the provider value. Dot encrypts the value for that item. The account holder still needs to grant access for third-party OAuth services.
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_SETTING | Check editable inputs and their permitted values. |
400 CONTENT_SETTINGS_TOO_LARGE | The JSON settings object must fit within 64 KiB. |
400 CONTENT_SETTING_REQUIRED | Keep a valid value for required inputs. |
400 CONTENT_CONNECTION_REQUIRED | If the template requires a service, check its connection requirements in the content details. |
404 CONTENT_NOT_AVAILABLE | Content unavailable. Check the content ID, device compatibility, and region. |
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_device_content_settings with Dot Assistant.
Did this solve your problem?
Join our community