/v1/assets/:assetId
POST {{baseUrl}}/v1/assets/:assetId
WARNING: This POST
method of updating an asset is deprecated and will soon be removed. It's been replaced with an equivalent PATCH
method: see Update asset.
You can update the name and tags of an asset by specifying its assetId
. Updating the tags
replaces all existing tags of the asset.
Request Body
{"name"=>"<string>", "tags"=>["<string>", "<string>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"asset":{"created_at":"\u003clong\u003e","id":"\u003cstring\u003e","name":"\u003cstring\u003e","tags":["\u003cstring\u003e","\u003cstring\u003e"],"updated_at":"\u003clong\u003e","import_status":{"state":"success","error":{"code":"import_failed","message":"\u003cstring\u003e"}},"thumbnail":{"height":"\u003cinteger\u003e","url":"\u003cstring\u003e","width":"\u003cinteger\u003e"}}}