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

# Update a task

`PATCH /tasks/{id}`

Updates an existing task. Only provided fields will be updated.

## Path parameters

- `id` string, required — Task public ID

## Request body

- object
  - `title` string — Task title
  - `description` string — Task description
  - `status` 'OPEN' | 'IN_PROGRESS' | 'ON_HOLD' | 'COMPLETED' | 'CANCELLED' — Task status
  - `priority` 'LOW' | 'MEDIUM' | 'HIGH' — Task priority
  - `dueDate` string, date-time — Due date
  - `startDate` string, date-time — Start date

## Response `200`

OK

- object
  - `id` string, required — Task public ID
  - `number` string, required — Auto-generated task number
  - `title` string, required — Task title
  - `description` string, nullable — Task description
  - `status` string, required — Task status
  - `type` string, required — Task type
  - `priority` string, nullable — Task priority
  - `dueDate` string, date-time, nullable — Due date
  - `startDate` string, date-time, nullable — Start date
  - `createdAt` string, date-time, required — When the task was created

---

[API](https://skmtc.net/heffl/apis/heffl-api-v2-beta.md) · [All operations](https://skmtc.net/heffl/apis/heffl-api-v2-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/heffl/heffl-api-v2-beta/revisions/27006cfef4d8/schema)
