Sets (or replaces) the value of a custom metadata field on a media, addressed by the field definition's immutable key. The lookup is case-insensitive.
The request body carries a single polymorphic value field whose JSON type must match the definition's field_type:
- text-like types (
text,short_text,time,datetime) — a string; format-validated per type (e.g. time is 24-hour"14:30", datetime is UTC ISO 8601"2026-07-10T14:30:00Z") number— a JSON number (a numeric string is coerced)date— an ISO 8601 date string like"2026-07-10"boolean— a JSON boolean;falsepersists as false (it does not clear the field)single_select— the chosen option's key (a string); unknown option keys return a 422multi_select— an array of the chosen options' keys (strings); unknown option keys or a non-array value return a 422
A null or absent value clears the field (equivalent to the DELETE endpoint), as does an empty array for multi_select. Type mismatches and format violations return a 422 with a field-level message.
Only values for active field definitions can be written. Requires the custom metadata feature to be available on your account.
Requires api token with one of the following permissions
Read, update & delete anything
Upload, read & update all media
Tokens with the "Act with a team member's permissions" permission
(all:delegate_to_contact_permissions scope) can also be used. Requests
made with such a token are authorized using the permissions of the
contact assigned to the token.
An expiring access token
created with the all:delegate_to_contact_permissions scope, an account
authorization granting the access-custom-metadata permission and an
authorization granting the update permission on the media can also be
used.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
204Custom metadata field value cleared (a null or absent value was sent, or an empty array for a multi_select field)
404Resource not found