Post Photo to Work Order

POSThttps://staging.x1.temprapp.com/api/v3/work-orders/{workOrder}/photos

Uploads a mobile photo and attaches it to the work order's project/customer. The file is stored via Spatie Media Library in the project's photos collection with custom properties: User ID, Photo Type, and Upload Source (mobile).

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workOrderintegerrequired

Response

application/json

Photo uploaded.

messagestringrequired
photo_idintegerrequired