---
title: "Complete Selection Task"
method: POST
path: "/api/selection-tasks/{task_id}/complete"
tags: ["selection-tasks"]
---

# Complete Selection Task

`POST /api/selection-tasks/{task_id}/complete`

## 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}/complete`
- Auth: none declared

Mark a task as completed with summary.

## Path parameters

- `task_id` string, uuid, required

## Query parameters

- `summary` string, required: Summary of work completed
- `result_page_id` string, uuid, nullable: Optional page created as result

## 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)
