Work Orders
Add Attachment
Add an attachment to the work order. Work order must be in the DRAFT
state. One attachment can be added per request. Attachments can be IMAGE
, FILE
, or TEXT
(corresponding to the same data types in Serial).
PUT
Authorizations
API Key or Token formatted as Bearer <YOUR_KEY_OR_TOKEN>
Headers
Should be multipart form data
Path Parameters
The work order UUID (work_order.id
) or work order number (work_order.wo_number
). Both will map to the same work order
Body
multipart/form-data
The request body is multipart form data and must include a JSON metadata object named `metadata` as well as optionally an image or file (of any format) named `attachment` if `metadata.type` is set to `IMAGE` or `FILE`. The example body shown here is that only of the `metadata`. The file binary would need to be attached sperately.
Available options:
IMAGE
, FILE
, TEXT
Include only for TEXT
attachments
Include only for FILE
or IMAGE
attachments
Response
200 - application/json
OK
Work Order Data
Required range:
x > 0
Available options:
DRAFT
, REVIEW
, PRODUCTION
, COMPLETE
, CANCELED
, ARCHIVED
Approvals object will have one key value pair for every approver
Multiple datasets can be added to the attachments object