Upload a content image
Upload a local image for a Content Studio template and get a file object you can use in its image field.
Upload a local image for a Content Studio template and get a file object you can use in its image field.
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.
Request Examples
/api/authV2/open/studio/images/uploadGenerated Code
Before running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Response Example
HTTP 201
{
"type": "cloud",
"key": "dot/user/0123456789abcdef01234567/studio/open-api/example.png",
"name": "example.png",
"size": 32000,
"mime": "image/png"
}Troubleshooting
Endpoint
/api/authV2/open/studio/images/upload
Method
POST
Request Schema
Prop
Type
Response Schema
Prop
Type
Pass the entire object as the image field value, for example in settings.image, when you add device content or update content. Get the field name from inputFields in Read content details.
Status Codes
| Status | What to do |
|---|---|
400 CONTENT_INVALID_IMAGE | Check the image format, size, and dimensions. |
401 | Renew authorization or check your API key and access token. |
403 | Your account does not have access to this endpoint. |
429 | Wait as indicated by Retry-After and try again. |
503 CONTENT_IMAGE_UPLOAD_FAILED | The image was not saved. Retry the upload. |
API rate limits · Use dot_upload_studio_image with Dot Assistant.
Did this solve your problem?
Join our community