drawings
Upload Drawing File
Stream a drawing file to R2 server-side (firewall-safe upload proxy).
Replaces the browser's direct PUT to *.r2.cloudflarestorage.com. The client POSTs the file as multipart/form-data and passes the r2_key returned by /initiate as a query parameter. The client must still call POST /confirm afterwards.
Authorization: the part must be owned by the current user, and the requested r2_key must fall inside the deterministic drawings/{user_id}/{part_id}/ namespace for this part — any key outside it is rejected (403).
post/api/v1/parts/{part_id}/drawings/upload
Request
- Base URLhttps://api.prototyping.io (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URLtoken
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
part_idstring uuid required
Query parameters
r2_keystring required
R2 object key from the initiate endpoint.
Request body multipart/form-data
Response
Successful Response
object required
Changes
No recorded changes to this operation across all 1 revision of this API.