Files
Create a file upload
Reserve a file ID and get the multipart upload instructions.
POST
Create a file upload
Required scope:
orders:write. Send an Idempotency-Key. After a timeout, retry with the same key and metadata to get the same file ID with a new form.
The file can be up to 12,582,912 bytes. The response contains a file ID and a temporary upload form. Send a multipart POST to the returned URL, add each returned field, and add the file last with the field name file. Do not send your API Bearer token to the upload URL.
The file belongs to an order only after you add its ID to file_ids when you create or change the order.
Read Files and inspections for a complete upload example.Headers
Body
application/json
Metadata used to create a temporary direct-upload form.