---
title: "Tick or untick a to-do"
method: PATCH
path: "/library/todos/{id}"
---

# Tick or untick a to-do

`PATCH /library/todos/{id}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/library/todos/{id}`
- Auth: HTTP bearer

Edits the to-do's document: only the item's checkbox changes, saved as a new version of the document (in its version history), by the same rules as the editor (its owner or a member of its workspace). 409 `todo_changed` when the item is no longer in the document.

## Path parameters

- `id` string, required

## Request body

- object
  - `done` boolean, required

## Response `200`

`todo` as listed, and `revision`, the document's new version.

- object

## Other responses

- `400`: Error — { error: { code, message } }
- `401`: Error — { error: { code, message } }
- `404`: Error — { error: { code, message } }
- `409`: Error — { error: { code, message } }
- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/library/todos/:id/patch.md)

---

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