Post API v1 content upload URL

Changed on
post/api/v1/content/upload-url

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Request body

$schemastring uri

A URL to the JSON Schema for this object.

fileNamestring required

Optional; used as documentId in response (defaults to last segment of key)

fileTypestring required

MIME type, e.g. image/jpeg, application/pdf

keystring required

Full S3 object key, e.g. premium/image/content-123/photo.jpg

Example request

{
  "$schema": "https://example.com/schemas/GetUploadURLRequest.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

document_idstring required
expires_ininteger required
keystring required
upload_urlstring required

Example response

{
  "$schema": "https://example.com/schemas/GetUploadURLResponse.json"
}

Changes