Update Asset
Update an asset’s name or visibility. With an API key, the asset must belong to the key’s owner; organization-shared assets can only be changed from an admin or owner session. Returns 403 asset_forbidden for an asset you can see but not edit, and 404 asset_not_found for an unknown id.
Authentification
x-api-keystring
Authentification par clé API via en-tête
Paramètres de chemin
id
A unique identifier for an asset.
Requête
This endpoint expects an object.
name
A new display name for the asset.
visibility
Update who can see the asset.
Valeurs autorisées:
durationSeconds
Updated media duration in seconds.
size
Updated file size in bytes.
format
Updated file format or extension.
width
Updated width in pixels.
height
Updated height in pixels.
Réponse
Asset updated successfully
id
A unique identifier for an asset.
createdAt
The date and time the asset was created.
updatedAt
The date and time the asset was last updated.
type
The type of asset file.
Valeurs autorisées:
visibility
Visibility scope for the asset.
Valeurs autorisées:
name
The filename of the asset.
url
The URL to access the asset media.
size
File size in bytes.
format
File format/extension (e.g., “mp4”, “wav”).
inputType
The source type of the asset.
durationSeconds
Duration of the media in seconds (for audio/video).
thumbnailUrl
URL to the asset's thumbnail image.
width
Width in pixels (for video/image).
height
Height in pixels (for video/image).
projectId
The id of the project this asset is attached to, or null when it belongs to no project.
proxyPath
Stable API proxy path for authenticated media playback.
Erreurs
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error

