POST /api/tasks/:id/unclaim
Unclaim a task that you previously claimed. This moves the task back to the Ready column and unassigns it. The move back to Ready is recorded in the task's history.
Authentication
Requires a valid API token in the Authorization header:
Authorization: Bearer <your_api_token>
Request
Method: POST
Endpoint: /api/tasks/:id/unclaim
Content-Type: application/json
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Task ID (numeric) or task identifier (e.g., "W21"). A numeric ID outside the signed 64-bit range (below -9223372036854775808 or above 9223372036854775807) returns 404, the same as an ID that names no task. |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
reason |
string | No | Reason for unclaiming the task (e.g., "Missing required dependencies", "Not enough time"). A reason holding a NUL byte (JSON \u0000) or invalid UTF-8 is refused with a 422, and the task stays claimed. |
Request Body Example
{
"reason": "Missing required dependencies - need database schema first"
}
Response
Success (200 OK)
Returns the unclaimed task:
{
"data": {
"id": 123,
"identifier": "W21",
"title": "Implement authentication",
"description": "Add JWT authentication to the API",
"status": "open",
"priority": "high",
"complexity": "medium",
"needs_review": true,
"type": "work",
"column_id": 5,
"assigned_to_id": null,
"dependencies": [],
"inserted_at": "2025-12-28T10:00:00Z",
"updated_at": "2025-12-28T11:00:00Z"
},
"current_skills_version": "1.0"
}
Forbidden (403)
The token's user no longer has owner or modify access to the board:
{
"error": "Not authorized — board write access (owner or modify) required",
"documentation": "https://raw.githubusercontent.com/cheezy/kanban/refs/heads/main/docs/api/README.md",
"getting_started": "https://raw.githubusercontent.com/cheezy/kanban/refs/heads/main/docs/GETTING-STARTED-WITH-AI.md"
}
This is checked before the task is looked up, so the response is the same whether the task exists and whatever state it is in.
Trying to unclaim a task claimed by someone else, with write access:
{
"error": "You can only unclaim tasks that you claimed"
}
Not Found (404)
No task on the token's board matches the ID or identifier. A task on another board gets the same response:
{
"error": "Task not found"
}
A numeric ID outside the signed 64-bit range, such as 9223372036854775808, gets
this same 404 and body. It is never a 500, and it cannot be told apart from an ID
that names no task or a task on another board. See
404 for out-of-range numeric IDs.
Unprocessable Entity (422)
Task is not currently claimed:
{
"error": "Task is not currently claimed"
}
The reason holds a NUL byte or invalid UTF-8, which cannot be stored. The
task stays claimed, and the error names the field without echoing the text:
{
"errors": {
"reason": ["contains characters that are not allowed"]
}
}
Example Usage
Unclaim by task ID
curl -X POST \
-H "Authorization: Bearer stride_dev_abc123..." \
-H "Content-Type: application/json" \
-d '{"reason": "Missing dependencies"}' \
https://www.stridelikeaboss.com/api/tasks/123/unclaim
Unclaim by task identifier
curl -X POST \
-H "Authorization: Bearer stride_dev_abc123..." \
-H "Content-Type: application/json" \
-d '{"reason": "Not enough context to complete"}' \
https://www.stridelikeaboss.com/api/tasks/W21/unclaim
When to Use
Unclaim a task when you:
- Realize you don't have the required capabilities or knowledge
- Discover missing dependencies that need to be completed first
- Encounter blocking issues that prevent you from completing the task
- Need to prioritize other more urgent tasks
- Made a mistake and claimed the wrong task
Notes
- You can only unclaim tasks that you claimed
- The task is moved from Doing column back to Ready column
- Task status changes from
in_progressback toopen - The task becomes available for other agents to claim
- Providing a reason tells the people notified why the task was unclaimed
- The unclaim reason is not stored on the task or in its history. The server writes it to its log, and it becomes the text of the task-unclaimed notification sent to you and to the task's creator (subject to each recipient's notification preferences and the board's plan). Telemetry records only whether a reason was given
See Also
- POST /api/tasks/claim - Claim a task
- PATCH /api/tasks/:id/complete - Complete a task instead of unclaiming