v1

latestOpenAPI 3.0.02026-07-26866217.8 KB
Task

Update Task

Update an existing task. All fields are optional; only the supplied fields are changed. Pass property_id=0 or staff_id=0 to detach the task from the related property or staff.

patch/tasks/{id}

Path parameters

idinteger required

Id of the task to update.

Request body

type'cleaning' | 'maintenance' | 'reception' | 'room_service' | 'other'
property_idinteger

Pass 0 to detach the task from any property.

staff_idinteger

Pass 0 to unassign the task.

expected_datestring date

Expected execution date in YYYY-MM-DD. Interpreted in the operator's configured timezone.

expected_timestring

Expected execution time in HH:mm:ss. Interpreted in the operator's configured timezone.

level'standard' | 'simple' | 'advanced'
status'pending' | 'in_progress' | 'completed' | 'cancelled'
currencystring
feenumber
notestring

Response

The task has been successfully updated.

request_idstring required

Unique identifier for the request.

error_codeinteger required

Numeric error code representing the status of the response. A value of 200 indicates success. <br> See the Error Codes section for more information.

error_msgstring required

Message detailing the status of the response.

Example response

{
  "error_msg": "Done."
}