---
title: "Update Project Task"
method: PATCH
path: "/v1/projects/{project_id}/tasks/{task_id}"
tags: ["project-tasks"]
---

# Update Project Task

`PATCH /v1/projects/{project_id}/tasks/{task_id}`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/tasks/{task_id}`
- Auth: none declared

Change a task's status and/or assignment (Developer+). A status change is
recorded in the task's audit history.

## Path parameters

- `project_id` string, required
- `task_id` string, required

## Request body

- TaskUpdateIn
  - `status` string, nullable
  - `assignee_user_uuid` string, nullable
  - `unassign` boolean
  - `note` string, nullable
  - `agent_requested` boolean, nullable

## Response `200`

Successful Response

- TaskOut
  - `uuid` string, required
  - `number` integer, nullable
  - `type` string, required
  - `role` string, nullable
  - `i18n_key` string, nullable
  - `scope` string
  - `category` string, nullable
  - `objective` string, nullable
  - `description` string, nullable
  - `commands` string[]
  - `agent_prompt` string, nullable
  - `title` string, required
  - `detail` string, nullable
  - `status` string, required
  - `assignee_user_uuid` string, nullable
  - `source` string
  - `source_agent` string, nullable
  - `payload` object, nullable
  - `count` integer, nullable
  - `deep_link` string, nullable
  - `severity` string
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable
  - `history` object[]
  - `resolution` object, nullable
  - `links` object[]
  - `agent_requested` boolean
  - `report` object, nullable
  - `key_sample` object[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
