Create upload

http
POST /projects/{project_reference}/uploads

Create a pending upload at a project path and return the signed URL and headers for the PUT request that sends the bytes. Requires project.uploads.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.

Request body

FieldTypeRequiredDescription
pathstringProject-relative path where the upload is stored.
file_pathstringAnother spelling of path. Send one of the two.
content_typestringMIME type of the file
size_bytesintegerFile size in bytes (required for quota tracking).
sizeintegerAnother spelling of size_bytes. Send one of the two.

Responses

StatusDescription
201Signed upload URL created.
400Bad request
401Unauthorized
402Payment required
403Forbidden
404Not found
409An upload was created at the same path concurrently
500Server error