API DocumentationSpecifications
Attach a file to a specification
POST
Stores an arbitrary file against a specification, recording who uploaded it and when. Files larger than 25 MB are rejected.Phasio API Bearer Tokenheader
AuthorizationBearer <token>partSpecificationId*stringID of the specification to attach the file to
Format
uuidmultipart/form-data- body
file*fileFile to upload
Format
binaryAttachment uploaded successfully
application/json- response
id*stringFormat
uuidname*stringcontentType*stringsize*integerFormat
int64uploadedBy?createdAt*stringFormat
date-timekind*stringValue in
"GENERAL""PRODUCTION_FILE"cadFileFormat?stringValue in
"STL""OBJ""WRL""STEP""STP""IGES""IGS""THREEMF""DXF""ZIP""THREEDS""BLEND""DAE""FBX""BREP""BDF""MSH""INP""DIFF""MESH""CTM""PLY""OFF""COLLADA""GLTF""XAML""THREEDXML""XYZ""X_T""X_B""SLDPRT"curl -X POST 'https://m-api.eu.phas.io/api/manufacturer/v1/part-specification/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments' \ -F 'file=string'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "contentType": "string", "size": 0, "uploadedBy": { "email": "string", "firstName": "string", "lastName": "string" }, "createdAt": "2019-08-24T14:15:22Z", "kind": "GENERAL", "cadFileFormat": "STL"}