Update Asset

PATCH

Update an Asset

Required scope | assets:write

Path parameters

asset_idstringRequired

Unique identifier for an Asset on a site

Request

This endpoint expects an object.
displayNamestringRequired

file name including file extension

Response

Request was successful

idstringOptional

Unique identifier for this asset

contentTypestringOptional

File format type

sizeintegerOptional

size in bytes

siteIdstringOptional

Unique identifier for the site that hosts this asset

hostedUrlstringOptional

Link to the asset

originalFileNamestringOptional

Original file name at the time of upload

displayNamestringOptional

Display name of the asset

lastUpdateddatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

Date the asset metadata was last updated

createdOndatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

Date the asset metadata was created

variantslist of objectsOptional
altTextstringOptional

The visual description of the asset

Errors