Update a media asset
update_mediaUpdate the alt text of an existing media asset. Changes are saved privately and require a separate publish step to go live.
Instructions
Update a media asset. Only alt_text is editable. The bytes are immutable: to replace an image, upload a new one and repoint whatever referenced the old one. Changes content on the customer's Site. Nothing becomes public: publishing is always a separate call. Needs a secret key (wv_sk_) carrying the media:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A UUID. | |
| alt_text | No | Send null to clear it. | |
| if_match | No | The ETag from your last read of this object. Send it and the write is refused if somebody else changed the object in the meantime, rather than silently overwriting their work. |