Update the user-defined metadata of an asset
This method updates the user-defined metadata of the specified asset. The platform merges your changes with the existing metadata:
- A key with a value creates or replaces that key.
- A key set to
nulldeletes that key. - A key set to an empty string (
"") or an empty array ([]) is ignored. - A key you omit from the request keeps its current value.
To replace all metadata in a single call, use the PUT method of the /assets/{asset_id}/user-metadata endpoint instead.
Authentication
x-api-keystring
Your API key.
Note
You can find your API key on the API Keys page.
Path parameters
asset_id
The unique identifier of the asset whose user-defined metadata to update.
Request
This endpoint expects an object.
user_metadata
Metadata that helps you categorize your assets. The object contains user-defined keys and values, where keys are strings. Each value is a string, a number, a boolean, or an array of strings. Send an integer wider than 53 bits (-9007199254740991 to 9007199254740991), and any identifier you want preserved verbatim, as a string.
Example:
"user_metadata": {
"category": "recentlyAdded",
"batchNumber": 5,
"rating": 9.3,
"needsReview": true,
"hashtags": ["summer", "vlog"]
}
Errors
400
Bad Request Error
404
Not Found Error