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

# Update Task

`PATCH /tasks/{task_id}`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/tasks/{task_id}`
- Auth: HTTP bearer

Update a task.

## Path parameters

- `task_id` string, required: Task ID

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Request body

- TaskUpdateRequest
  - `tags` string[], nullable
  - `expected_updated_at` string, date-time, nullable
  - `task_type` string, nullable: Activity type; null removes the saved type
  - `records` object[], nullable: Replace related records; an empty list removes all links and makes the task standalone. Omit to preserve existing links.
  - `title` string, nullable: Task title
  - `description` string, nullable: Task description
  - `due_date` string, nullable: Due date (ISO 8601)
  - `assignee_id` string, nullable: User ID to assign the task to
  - `status` string, nullable: Task status (open, completed)
  - `priority` integer, nullable: Priority (0=none, 1=high, 2=medium, 3=low; historical 4=low is preserved)
  - `parent_task_id` string, nullable: New parent task UUID. Re-parents this task into a subtask of the given parent. Parent must exist and must not itself be a subtask.
  - `subtask_sort_order` integer, nullable: New sort position within the parent's subtasks (reorder).

## Response `200`

Successful Response

- ApiResponseTaskResponse
  - `data` TaskResponse, required
    - `tags` string[]
    - `executor_type` 'human' | 'agent'
    - `executor_agent_id` string, nullable
    - `executor_agent_name` string, nullable
    - `execution_id` string, nullable
    - `entity_label` string, nullable
    - `links` object[]
    - `source_url` string, nullable
    - `source_external_id` string, nullable
    - `source_meeting_id` integer, nullable
    - `source_transcript_id` string, nullable
    - `source_meeting_title` string, nullable
    - `source_meeting_start_time` string, nullable
    - `visibility` string, nullable
    - `reminder_at` string, nullable
    - `reminder_sent_at` string, nullable
    - `id` string, required
    - `entity_type` string, nullable
    - `entity_id` string, nullable
    - `title` string, required
    - `description` string, nullable
    - `due_date` string, nullable
    - `assignee_id` string, nullable
    - `assignee_name` string, nullable
    - `status` string, nullable
    - `priority` integer, nullable
    - `task_type` string, nullable
    - `created_by` string, nullable
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `parent_task_id` string, nullable
    - `subtask_sort_order` integer, nullable
    - `subtask_count` integer, nullable
    - `completed_subtask_count` integer, nullable
  - `pagination` PaginationMeta
    - `page` integer, required: Current page number (1-indexed)
    - `limit` integer, required: Items per page
    - `total` integer, required: Total number of items
    - `has_next` boolean, required: Whether there are more pages
    - `next_cursor` string, nullable: Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers.
    - `total_available` integer, nullable: Search endpoints only: how many records really match, when known. Can be larger than `total`, which is capped at the 10,000 results that can be paged. For company search this is a distinct-company estimate. Null when unknown; absent outside search.
    - `total_is_lower_bound` boolean, nullable: Search endpoints only: true when more records match than `total` shows (the result set is larger than the 10,000 results that can be paged). Absent outside search.
    - `notes` string[], nullable: Search endpoints only: plain-language notes about the result, e.g. that more records match than can be paged, or that a reversed `between` range was put in order.

## Other responses

- `422`: Validation Error

---

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