Replace the user-defined metadata of an asset
This method replaces the entire user-defined metadata of the specified asset. Unlike the PATCH method, which merges your changes with the existing metadata, this method overwrites the stored value in full:
- A key with a value creates or replaces that key.
- A key you omit, or set to an empty string (
""), an empty array ([]), ornull, is removed.
To clear all metadata, send an empty object ({}) in the user_metadata field. This produces the same result as the DELETE method.
Authentication
Your API key.
You can find your API key on the API Keys page.
Path parameters
The unique identifier of the asset whose user-defined metadata to replace.
Request
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"]
}