set_asset_custom_meta
Set or clear a custom meta field on an asset, entering free text or picking predefined values for single- or multi-select fields.
Instructions
Write to a custom meta field on an asset. The field's shape determines which value param to pass:
free (free-text): pass
value(ortext)select (single-pick): pass
custom_meta_value_idmulti (multi-pick): pass
custom_meta_value_ids(array)
Pass none of value/text/*_id to clear the field. The asset is reindexed on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the resource | |
| text | No | Alias for value (server accepts either) | |
| value | No | Free-text value (free fields) | |
| custom_meta_field_id | Yes | CustomMetaField id to write | |
| custom_meta_value_id | No | Predefined value id (single-select fields) | |
| custom_meta_value_ids | No | Predefined value ids (multi-select fields) |