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

# Update a task

`PATCH /v1/tasks/{task_id}`

## Request

- Base URL: `https://app.nex.ai/api/developers`
- URL: `https://app.nex.ai/api/developers/v1/tasks/{task_id}`
- Auth: API key in header `Authorization`

Updates properties of an existing task. All fields are optional — only provided fields are updated.

## Path parameters

- `task_id` string, required

## Request body

- DeveloperUpdateTaskRequest
  - `title` string: New title (cannot be empty)
  - `description` string: New description (empty string clears it)
  - `priority` 'unspecified' | 'low' | 'medium' | 'high' | 'urgent' | '': New priority (empty string clears it)
  - `due_date` string, date-time: New due date
  - `is_completed` boolean: Mark complete/incomplete
  - `entity_ids` string[]: Replace associated records
  - `assignee_ids` string[]: Replace assignees

## Response `200`

Updated task

- DeveloperTaskResponse
  - `id` string
  - `title` string
  - `description` string
  - `priority` string
  - `due_date` string, date-time
  - `is_completed` boolean
  - `completed_at` string, date-time
  - `assignee_ids` string[]
  - `entity_ids` string[]
  - `created_by` string
  - `created_by_id` string
  - `created_at` string, date-time
  - `archived_at` string, date-time

## Other responses

- `400`: Bad request - Invalid data
- `401`: Unauthorized - Invalid or missing API key
- `404`: Task not found
- `500`: Internal server error

## Changes

- **2026-02-17** `b05d8cb8cf43`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nex/apis/nex-developer-api/changes/v1/tasks/:task_id/patch.md)

---

[API](https://skmtc.dev/nex/apis/nex-developer-api.md) - [All operations](https://skmtc.dev/nex/apis/nex-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nex/apis/nex-developer-api/revisions/51003af13108?raw)
