---
title: "Update a user task"
method: PATCH
path: "/public/v1/tasks/{taskId}"
tags: ["User Tasks"]
---

# Update a user task

`PATCH /public/v1/tasks/{taskId}`

Updates a task. Send only the fields to change. Pass `due_date: null` to clear the due date, or `object_name: null` + `row_id: null` to unlink the related object record. Requires a USER API key.

## Path parameters

- `taskId` number, nullable

## Request body

- PublicUserTaskUpdateInput
  - `content` string
  - `due_date` string, nullable — Pass null to clear the due date.
  - `assignee_ids` number[]
  - `object_name` string, nullable — Pass null (with row_id null) to unlink the object record.
  - `row_id` string, nullable

## Response `200`

Updated task

- PublicUserTask
  - `id` number, required
  - `content` string, required
  - `due_date` string, nullable
  - `completed` boolean, required
  - `completed_at` string, nullable
  - `created_at` string, required
  - `updated_at` string, required
  - `created_by` object, nullable
    - `id` number, required
    - `name` string, nullable
    - `email` string, nullable
  - `completed_by` object, nullable
    - `id` number, required
    - `name` string, nullable
    - `email` string, nullable
  - `assignees` object[], required — Assigned users
    - `id` number, required
    - `name` string, nullable
    - `email` string, nullable
  - `related` object, nullable — Linked object record, if the task is attached to one (else null).
    - `object_name` string, nullable — Object the task is linked to (the slug used in /objects commands).
    - `object_label` string, nullable
    - `row_id` string, nullable

## Other responses

- `404` — Not Found

---

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