Show examples in:
JavascriptHTTP
Content Management API > Upload permission

Upload permission

To upload a file with the Content Management API, first you need to obtain an upload permission. The upload_request entity contains the S3-like URL where you will be able to upload the file with a raw/binary PUT request.

Object payload

idstring

The S3 path where the file will be stored

Example:"/7/1455102967-image.png"
typestring

Must be exactly "upload_request".

attributes.urlstring

The URL to use to upload the file with a raw/binary PUT request

Example:"https://dato-images.s3-eu-west-1.amazonaws.com/7/1455102967-image.png?X-Amz-Credential=AKIAJDTXTZHHDUCKAUMA%2F20160210"
attributes.request_headersobject

Specifies the additional headers that need to be included in the direct PUT upload request

Available endpoints