Set Custom Metadata Field Value

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; false persists as false (it does not clear the field)
  • single_select — the chosen option's key (a string); unknown option keys return a 422
  • multi_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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The hashed ID of the media whose custom metadata field value is to be set.

string
required

The field definition's immutable key.

Body Params

The new value for this field, typed to match the definition's field_type:
a string for text-like types (text, short_text, time, datetime),
a number for number, an ISO 8601 date string like "2026-07-10" for date,
a boolean for boolean, the chosen option's key (a string) for single_select,
and an array of the chosen options' keys for multi_select.
Null (or omitting the property) clears the field; for multi_select,
an empty array also clears it.

Headers
string
required
Defaults to 2026-11
Responses

204

Custom metadata field value cleared (a null or absent value was sent, or an empty array for a multi_select field)

404

Resource not found

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json