update an asset
assets_updateModify an existing asset's name or visibility, or correct stored media metadata by ID; send only fields to change so omitted values remain.
Instructions
Change an existing asset's name or visibility, or correct its stored media metadata (durationSeconds, size, format, width, height), by id. Send only the fields the user asked to change: omitted fields keep their values and sent ones overwrite the stored values, so read the asset with assets_get first if the old values may be needed. Metadata fields rewrite the asset record, not the media file, and sync. reads the stored durationSeconds in later checks, such as the plan length limit for a link-imported video and dubbing review intervals, so send metadata only with a value you know is right. Not for adding new media (use assets_create) or renaming a project (use projects_rename when available). Every update acts as a user, so an API key with no owner gets 422. Name or visibility changes need the asset's creator or a signed-in organization admin or owner; an API key acts as a plain member, so only on assets its owner created. A metadata-only request works on any asset the caller can read, including other members' assets, so change those only on the user's explicit request. 403 means you can read the asset but may not change it; 404 means it does not exist, was deleted or is not visible to you. Returns the updated asset record, including id, name, visibility, url, the media fields, thumbnailUrl, userId, createdAt and updatedAt, but not proxyPath; use assets_get for that.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "assets_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Asset id (UUID) from assets_list or assets_get. | |
| name | No | New display name; must not be empty. | |
| size | No | Corrected file size in bytes, a positive whole number. Send only a verified correction. | |
| width | No | Corrected width in pixels, a positive whole number. Send only a verified correction. | |
| format | No | Corrected file format or extension, such as mp4 or wav; must not be empty. Send only a verified correction. | |
| height | No | Corrected height in pixels, a positive whole number. Send only a verified correction. | |
| visibility | No | USER: visible to its creator, to everyone in the organization when the asset is attached to an ORGANIZATION-visible project, and to organization API keys with no owner. ORGANIZATION: visible to everyone in the organization. | |
| durationSeconds | No | Corrected media length in seconds, greater than 0. Later duration checks read this value, so send only a length you have verified. |