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

# Update a task

`PATCH /tasks/{id}`

## Request

- Base URL: `https://joinways.app/api/v1`
- URL: `https://joinways.app/api/v1/tasks/{id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://joinways.app/oauth/authorize`, token URL `https://joinways.app/api/oauth/token`, scopes: `mcp.write`)

Updates the given fields. A task of an archived event is read-only (`409`). **Role permission:** `data.write`.

## Headers

- `Idempotency-Key` string

## Request body

- TaskUpdate: Every field is optional; at least one is required.
  - `title` string
  - `status` 'todo' | 'in_progress' | 'waiting' | 'done' | 'cancelled'
  - `priority` 'low' | 'medium' | 'high' | 'urgent'
  - `due_date` string, date-time
  - `assigned_to_account_id` string, uuid
  - `event_id` string, uuid

## Response `200`

The updated task.

- Task: A task as listed (`GET /tasks`).
  - `id` string, uuid
  - `task_number` integer, nullable
  - `title` string
  - `status` 'todo' | 'in_progress' | 'waiting' | 'done' | 'cancelled'
  - `priority` 'low' | 'medium' | 'high' | 'urgent'
  - `due_date` string, date-time, nullable
  - `start_date` string, date-time, nullable
  - `estimated_duration_minutes` integer, nullable
  - `event_id` string, uuid, nullable
  - `brief_id` string, uuid, nullable
  - `company_id` string, uuid, nullable
  - `contact_person_id` string, uuid, nullable
  - `location_id` string, uuid, nullable
  - `assigned_to_account_id` string, uuid, nullable: The member the task is assigned to.
  - `category` string, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `account_id` string, uuid, nullable
  - `description` string, nullable
  - `notes` string, nullable
  - `quote_id` string, uuid, nullable
  - `attachments` string[], nullable
  - `dependencies` string[], nullable
  - `cancelled_reason` string, nullable
  - `status_before_cancellation` string, nullable
  - `is_demo` boolean

## Other responses

- `400`: Validation failed (`invalid_request`). For a body that fails the schema, `details` holds `formErrors` and `fieldErrors`.
- `401`: Missing, invalid, expired or revoked bearer token (`unauthorized`).
- `403`: `forbidden`: the token lacks the scope, its owner's role lacks the permission named by the operation, or the workspace has neither the Pro plan nor a trial (`details.reason` `plan_not_eligible`).
- `404`: Not found in this workspace, or the id of the path is not a UUID (`not_found`).
- `409`: The event is archived, so read-only (`conflict`, `details.reason` `event_archived`). Unarchive it first (`POST /events/{id}/unarchive`).
- `429`: Too many requests (`rate_limited`). `details.reason`: `per-ip`, `per-account-minute`, `per-account-day`, or `email_rate_limited` (email budget). Always carries `Retry-After`: wait that many seconds.

---

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