drawings

Initiate Drawing Upload

Initiate a drawing file upload by deriving its R2 key.

Returns the r2_key. The client then streams the raw file bytes to POST /parts/{part_id}/drawings/upload and finally calls POST /confirm with the r2_key and file_size.

post/api/v1/parts/{part_id}/drawings/initiate

Request

Path parameters

part_idstring uuid required

Request body

file_namestring required

Original file name including extension (e.g. 'drawing.pdf').

content_typestring required

MIME type of the file (e.g. 'application/pdf').

file_sizeinteger required

Exact file size in bytes. Must not exceed 50 MB.

Response

Successful Response

r2_keystring required

The R2 object key where the file will be stored.

Changes

No recorded changes to this operation across all 1 revision of this API.