Create Attachment

Uploads a file to a work order. The file can be an image, PDF, or other document types. The maximum file size is 5MB.

Path parameters

workOrderIdstringRequired
The id of the work order

Request

This endpoint expects a multipart form containing a file.
filefileRequired
idempotencyIdstringRequired
typeenumRequired
Type of attachment
Allowed values:
createdByIdstringRequiredformat: "uuid"
The ID of the user who created the attachment
namestringOptional
The name of the file, if not provided, the name will be taken from the file.

Response

The created attachment
createdAtdatetime
namestring
organizationIdstringformat: "uuid"
propertyIdstringformat: "uuid"
typeenum
Allowed values:
updatedAtdatetime
urlstring
workOrderIdstringformat: "uuid"
customerobject or null
customerIdstring or nullformat: "uuid"
deletedAtdatetime or null
householdobject or null
householdIdstring or nullformat: "uuid"
idstring or nullformat: "uuid"
idempotencyIdstring or nullformat: "uuid"
notesstring or null
organizationany or null
propertyobject or null
readableIdstring or null
workOrderobject or null