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
customerIdstringformat: "uuid"
deletedAtdatetime
householdobject
householdIdstringformat: "uuid"
idstringformat: "uuid"
idempotencyIdstringformat: "uuid"
notesstring
organizationany
propertyobject
readableIdstring
workOrderobject