---
title: "Update Task"
method: PATCH
path: "/tasks/{id}"
tags: ["Task"]
---

# Update Task

`PATCH /tasks/{id}`

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.

## Path parameters

- `id` integer, required

## Request body

- object
  - `type` 'cleaning' | 'maintenance' | 'reception' | 'room_service' | 'other'
  - `property_id` integer — Pass `0` to detach the task from any property.
  - `staff_id` integer — Pass `0` to unassign the task.
  - `expected_date` string, date — Expected execution date in `YYYY-MM-DD`. Interpreted in the operator's configured timezone.
  - `expected_time` string — Expected execution time in `HH:mm:ss`. Interpreted in the operator's configured timezone.
  - `level` 'standard' | 'simple' | 'advanced'
  - `status` 'pending' | 'in_progress' | 'completed' | 'cancelled'
  - `currency` string
  - `fee` number
  - `note` string

## Response `200`

The task has been successfully updated.

- CommonResponse
  - `request_id` string, required — Unique identifier for the request.
  - `error_code` integer, required — Numeric error code representing the status of the response. A value of `200` indicates success. <br> See the [Error Codes](/reference/error-manual#error-codes) section for more information.
  - `error_msg` string, required — Message detailing the status of the response.

---

[API](https://skmtc.net/hostex/apis/hostex-api.md) · [All operations](https://skmtc.net/hostex/apis/hostex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostex/hostex-api/versions/a3fa555dee66/schema)
