---
title: "Tick a task's status"
method: PATCH
path: "/api/agent/tasks/{id}"
tags: ["Agent"]
---

# Tick a task's status

`PATCH /api/agent/tasks/{id}`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/agent/tasks/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

A leaf task moving to `verified` requires `evidence` (EvidenceRequiredError -> 400) unless the service-level bypass applies.

## Path parameters

- `id` integer, required

## Request body

- object
  - `status` 'pending' | 'in_progress' | 'verified' | 'blocked' | 'skipped', required
  - `evidence` string

## Response `200`

Updated task.

- AgentTask: The `agent_tasks` row — a hierarchical, verifiable checklist item for a session.
  - `id` integer
  - `tenantId` integer
  - `sessionId` integer
  - `parentTaskId` integer, nullable
  - `title` string
  - `status` 'pending' | 'in_progress' | 'verified' | 'blocked' | 'skipped'
  - `verifyCmd` string, nullable
  - `evidence` string, nullable
  - `orderIndex` integer
  - `contextId` integer, nullable
  - `goalNodeId` integer, nullable: Team-mode rollup to the project goal graph.
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: Validation failure or missing required evidence.
- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
