/v1/asset-uploads
POST {{baseUrl}}/v1/asset-uploads
Starts a new job to upload an asset to a user's content library.
The request format for this endpoint is an application/octet-stream
body of bytes. Attach
information about the upload using an Asset-Upload-Metadata
header.
You can check the status and get the results of asset upload jobs created with this API using the Get asset upload job API.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Asset-Upload-Metadata | null | (Required) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"job":{"id":"\u003cstring\u003e","status":"in_progress","error":{"code":"file_too_big","message":"\u003cstring\u003e"},"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":"import_failed","message":"\u003cstring\u003e"}},"thumbnail":{"height":"\u003cinteger\u003e","url":"\u003cstring\u003e","width":"\u003cinteger\u003e"}}}}