Reset task
POST/api/tasks/:task_id/reset
Returns a task to a clean draft without running it: stops its agent, discards its worktree's changes and frees the worktree; resetting an epic resets the unarchived tasks under it as well, and returns 409 when nothing was reset, such as a task already in draft. What the attempt produced (question rounds and their answers, the report and other artifacts, the activity history) stays shown unless the optional body sets delete_artifacts to true, which hides it; the task's body, attachments, tags and dependencies are kept either way. Returns the updated task.
Request
Responses
- 200
- 422
OK
Unprocessable content