API DocumentationSpecifications

Attach a file to a specification

POST
/api/manufacturer/v1/part-specification/{partSpecificationId}/attachments
        Stores an arbitrary file against a specification, recording who uploaded it and when. Files larger than         25 MB are rejected.

Authorization

Phasio API Bearer Token
headerAuthorizationBearer <token>

Path Parameters

partSpecificationId*string

ID of the specification to attach the file to

Formatuuid

Request Body

multipart/form-data
  1. body
file*file

File to upload

Formatbinary

Response Body

Attachment uploaded successfully

application/json
  1. response
id*string
Formatuuid
name*string
contentType*string
size*integer
Formatint64
uploadedBy?
createdAt*string
Formatdate-time
kind*string
Value in"GENERAL""PRODUCTION_FILE"
cadFileFormat?string
Value 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"}