---
title: "Retry a failed or cancelled task"
method: POST
path: "/tasks/{task_id}/retry"
tags: ["Tasks"]
---

# Retry a failed or cancelled task

`POST /tasks/{task_id}/retry`

## Request

- Base URL: `https://api-docs.jackhamr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.jackhamr.ai/tasks/{task_id}/retry`
- Auth: none declared

Retry a failed or cancelled task. Increments ``retry_count``.

404 if not found; 409 if not in a retryable terminal state.

## Path parameters

- `task_id` string, required

## Response `200`

Successful Response

- TaskActionResponse: Lifecycle action acknowledgment (pause/resume/cancel/retry).
  - `task_id` string, required
  - `action` string, required
  - `status` string, required
  - `message` string, required
  - `timestamp` string, date-time, required

## Other responses

- `422`: Validation Error

---

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