assembly-files

Initiate Assembly Upload

Initiate an assembly file upload — returns the R2 key.

Hard-replaces any existing assembly file for the project (deletes the old R2 object + DB row before creating the new row). The client then streams the file to POST /upload and finally calls confirm-upload.

Returns 409 ASSEMBLY_UPLOAD_BLOCKED_BY_STATUS if the project is past IN_PRODUCTION.

post/api/v1/projects/{project_id}/assembly-file/initiate-upload

Path parameters

project_idstring uuid required

Request body

file_namestring required

Original file name including extension (e.g. 'main_assembly.step').

content_typestring required

MIME type of the file (e.g. 'application/octet-stream').

file_sizeinteger required

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

Response

Successful Response

assembly_file_idstring uuid required
r2_keystring required

Changes

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