/v1/assets/upload

POST {{baseUrl}}/v1/assets/upload

WARNING: This endpoint for uploading an asset is deprecated. You should instead use the asynchronous Create asset upload job API instead.

You can upload media assets to a user’s content library using the assets/upload endpoint. When specifying an asset that already exists, it renames the asset.

The request format for this endpoint is an application/octet-stream body of bytes. Attach information about the upload using an Upload-Metadata header.

HEADERS

KeyDatatypeRequiredDescription
Upload-Metadatanull(Required)
Content-Typestring
Acceptstring

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":"in_progress","error":{"code":"file_too_big","message":"\u003cstring\u003e"}},"thumbnail":{"height":"\u003cinteger\u003e","url":"\u003cstring\u003e","width":"\u003cinteger\u003e"}}}