Skip to main content
PATCH
/
image
/
{image_id}
Update image
curl --request PATCH \
  --url https://api.videodb.io/image/{image_id} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "name": "Updated Image Name"
}
'
{
  "success": true,
  "data": {
    "id": "img-12345",
    "name": "image.jpg",
    "collection_id": "default",
    "width": 1920,
    "height": 1080,
    "size": 262144,
    "url": "https://assets.videodb.io/img/12345.jpg",
    "created_at": "2023-11-07T05:31:56Z"
  }
}
Update metadata for a specific image, including its name and description.
  • Only provided fields are updated; omitted fields remain unchanged

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

image_id
string
required
Example:

"img-12345"

Body

application/json
name
string
Example:

"Updated Image Name"

Response

200 - application/json

Image updated

success
boolean
Example:

true

data
object