Show examples in:
Upload permission

To upload a file in DatoCMS, first you need to obtain an upload permission through this API endpoint. The response will contain the S3 URL where you will be able to upload the file with a direct PUT request.

Object payload

id  string
The S3 path where the file will be stored
type  string
Must be exactly "upload_request"
url  string  Example: "https://dato-images.s3-eu-west-1.amazonaws.com/7/1455102967-image.png?X-Amz-Credential=AKIAJDTXTZHHDUCKAUMA%2F20160210"

The URL to use to upload the file with a direct PUT request

request_headers  object

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

Available endpoints