# reorder_status_checklist_item

`tools/call` · `POST /clanker/v1/ticket-statuses:reorder-checklist-item`

Move a status's checklist template item before or after another of its items. Give before or after, not both. Returns the status with its template. Needs write access, and your person must be in the status's team or be a workspace owner or admin.

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

## Inputs

- `status` (string, required): A status's name in the team, or its ID from list_ticket_statuses, such as Review.
- `team` (string): The team whose status it is, such as WEB. Leave it out for the workspace's template that new teams copy.
- `item` (string, required): A checklist template item's ID from list_ticket_statuses, or its title.
- `before` (string): The item to go right before.
- `after` (string): The item to go right after.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "reorder_status_checklist_item",
    "arguments": {
      "status": "Review",
      "team": "WEB",
      "item": "Design review",
      "before": "Review approved"
    }
  }
}
```

## HTTP request

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

```bash
curl -X POST https://api.clankership.com/clanker/v1/ticket-statuses:reorder-checklist-item \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "Review",
    "team": "WEB",
    "item": "Design review",
    "before": "Review approved"
  }'
```
