PATCH /api/tasks/:id/mark_done
Mark a task in the Review column as done and move it directly to the Done column, bypassing the normal review process. This is typically used when a task needs to be completed without going through formal review.
Authentication
Requires a valid API token in the Authorization header:
Authorization: Bearer <your_api_token>
Request
Method: PATCH
Endpoint: /api/tasks/:id/mark_done
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
This endpoint does not require a request body. The task will be moved to the Done column with status completed.
Response
Success (200 OK)
Returns the task that was marked as done:
{
"data": {
"id": 123,
"identifier": "W21",
"title": "Implement authentication",
"description": "Add JWT authentication to the API",
"status": "completed",
"priority": "high",
"complexity": "medium",
"needs_review": true,
"type": "work",
"column_id": 8,
"assigned_to_id": null,
"completed_by_id": null,
"completed_by_agent": null,
"time_spent_minutes": null,
"completion_summary": null,
"review_status": null,
"review_notes": null,
"reviewed_at": null,
"reviewed_by_id": null,
"inserted_at": "2025-12-28T10:00:00Z",
"updated_at": "2025-12-28T11:30:00Z",
"completed_at": "2025-12-28T11:30:00Z"
},
"current_skills_version": "1.0"
}
Forbidden (403)
The token's user no longer has owner or modify access to the board, for example after being made a read-only member:
{
"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.
Unprocessable Entity (422)
Task is not in the Review column:
{
"error": "Task must be in Review column to mark as done"
}
Not Found (404)
Task not found:
{
"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.
Behavior
When marking a task as done:
- Validates task location: Task must be in the Review column
- Moves to Done column: Task is moved to the Done column
- Updates status: Status is set to
completed - Sets completion timestamp:
completed_atis set to current time - Broadcasts update: Change is broadcast to all connected clients
- Does NOT set completion metadata: Unlike the normal completion flow, this endpoint does NOT set:
completed_by_idcompleted_by_agentcompletion_summarytime_spent_minutesactual_complexityactual_files_changedreview_status
- Does NOT execute hooks: This endpoint bypasses all workflow hooks (
after_review, etc.) - Unblocks dependents: Like every move to Done, it checks the tasks that depend on this one and unblocks those whose dependencies are now all complete
- Does NOT deliver
after_goal: Even when the task is a goal's last open child, noafter_goalhook is armed or returned
Use Cases
- Emergency completion: Complete a task that's stuck in review when the reviewer is unavailable
- Self-review: Mark your own work as done when formal review isn't required
- Administrative override: Manually complete a task as an administrator
- Cleanup: Mark old tasks as done when they're no longer relevant to review
Workflow
This endpoint is typically used in these scenarios:
- Task completed and reviewed externally: The review happened outside the system
- No review needed: Task was incorrectly marked as needing review
- Administrative action: Admin needs to manually complete a task
- Bypass stuck review: Reviewer is unavailable and task needs to move forward
Example Usage
Mark task as done by identifier
curl -X PATCH \
-H "Authorization: Bearer stride_dev_abc123..." \
https://www.stridelikeaboss.com/api/tasks/W21/mark_done
Mark task as done by numeric ID
curl -X PATCH \
-H "Authorization: Bearer stride_dev_abc123..." \
https://www.stridelikeaboss.com/api/tasks/123/mark_done
Comparison with Other Completion Endpoints
| Endpoint | Purpose | Hooks Executed | Review Process |
|---|---|---|---|
PATCH /api/tasks/:id/complete |
Complete task from Doing column | Yes (after_doing, before_review) |
Moves to Review or Done based on needs_review |
PATCH /api/tasks/:id/mark_reviewed |
Complete review and move to Done | Yes (after_review) |
Requires review decision (approved/changes_requested/rejected) |
PATCH /api/tasks/:id/mark_done |
Bypass review and mark as done | No | No review process, direct to Done |
Notes
- Task must be in the Review column to use this endpoint
- This endpoint does not execute any workflow hooks
- This endpoint does not set completion metadata (completed_by, completion_summary, etc.)
- This endpoint does unblock dependent tasks, as every move to Done does
- Use
PATCH /api/tasks/:id/mark_reviewedinstead if you want to go through the normal review process with:- Hook execution (
after_review, andafter_goalfor a goal's last child) - The human reviewer's
review_statusdecision honoured
- Hook execution (
- The task's
statuswill be set tocompleted - The task's
completed_attimestamp will be set - This action is broadcast to all connected clients viewing the board
- This is a minimal bypass endpoint - it only updates status, completion time, and column
See Also
- PATCH /api/tasks/:id/complete - Complete a task (triggers hooks)
- PATCH /api/tasks/:id/mark_reviewed - Mark task as reviewed (normal review process)
- GET /api/tasks/:id - Get task details
- GET /api/tasks/:id/dependents - See which tasks will be unblocked