assets
Replace the user-defined metadata of an asset
Changed onThis 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 ([]), or null, is removed.
To clear all metadata, send an empty object ({}) in the user_metadata field. This produces the same result as the DELETE method.
put/assets/{asset_id}/user-metadata
Request
- Base URL: https://api.twelvelabs.io/v1.3
- URL: https://api.twelvelabs.io/v1.3/assets/{asset_id}/user-metadata
- Auth: API key in header x-api-key
Path parameters
asset_idstring required
The unique identifier of the asset whose user-defined metadata to replace.
Request body
Response
Successful response
Changes
- warning
deleted the
headerrequest parameterx-api-key - info
the endpoint scheme security
x-api-keywas added to the API
- warning
- info
api operation id
replace-user-metadataremoved and replaced withassets_replace_user_metadata
- info