Digital Asset Management (DAM)
Managing assets
Update file details
This API updates the details or attributes of the current version of the file. You can update tags, customCoordinates, customMetadata, publication status, remove existing AITags and apply extensions using this API.
patch/v1/files/{fileId}/details
Path parameters
fileIdstring required
The unique fileId of the uploaded file. fileId is returned in list and search assets API and upload API.
Request body
Example request
{
"extensions": [
{
"name": "remove-bg",
"options": {
"add_shadow": true,
"bg_colour": "green"
}
},
{
"name": "google-auto-tagging",
"maxTags": 5,
"minConfidence": 95
},
{
"name": "ai-auto-description"
},
{
"name": "ai-tasks",
"tasks": [
{
"type": "select_tags",
"instruction": "What types of clothing items are visible in this image?",
"vocabulary": [
"shirt",
"tshirt",
"dress",
"trousers",
"jacket"
]
},
{
"type": "yes_no",
"instruction": "Is this a luxury or high-end fashion item?",
"on_yes": {
"add_tags": [
"luxury",
"premium"
]
}
}
]
},
{
"name": "saved-extension",
"id": "ext_abc123"
}
]
}Response
Updated file details object.