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

# Update Selection Task

`PATCH /api/selection-tasks/{task_id}`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/selection-tasks/{task_id}`
- Auth: none declared

Update a selection task (status, add note, complete).

## Path parameters

- `task_id` string, uuid, required

## Request body

- SelectionTaskUpdate: Update a selection task.
  - `status` string, nullable
  - `note` string, nullable
  - `completed_summary` string, nullable
  - `result_page_id` string, uuid, nullable

## Response `200`

Successful Response

- SelectionTaskResponse: Selection task response.
  - `id` string, required
  - `page_id` string, nullable
  - `block_id` string, nullable
  - `selection_type` string, required
  - `selection_data` object, required
  - `selection_display` string, required
  - `prompt` string, required
  - `status` string, required
  - `notes` string[], required
  - `created_at` string, date-time, nullable
  - `started_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable
  - `completed_summary` string, nullable
  - `result_page_id` string, nullable
  - `root_path` string, nullable
  - `source` SelectionSource: Source location of a selection task.
    - `page_id` string, nullable
    - `page_title` string, nullable
    - `block_id` string, nullable
    - `block_title` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
