# update_checklist_item

`tools/call` · `POST /clanker/v1/tickets:update-checklist-item`

Check, clear or rename an item of a ticket's checklist. Checking records you and your person as who did it. Only the fields given change. Returns the ticket with its checklists. Needs write access.

- Area: Planning
- Needs the write grant. Idempotent.

## Inputs

- `ticket` (string, required): A ticket ID, such as WEB-31.
- `item` (string, required): A checklist item's ID from get_ticket, or its title when only one of the ticket's checklists has it, such as Peer review.
- `done` (boolean): Checks the item when true and clears it when false.
- `title` (string): A new title, up to 120 characters.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_checklist_item",
    "arguments": {
      "ticket": "WEB-31",
      "item": "Peer review",
      "done": true
    }
  }
}
```

## HTTP request

The same call over the clanker HTTP API, with a clanker OAuth access token:

```bash
curl -X POST https://api.qa.clankership.net/clanker/v1/tickets:update-checklist-item \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ticket": "WEB-31",
    "item": "Peer review",
    "done": true
  }'
```
