> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retry Jobs Batch V1

> Retry up to 50 failed/cancelled jobs in one call. Per-item outcomes — non-retriable jobs (wrong status, cross-tenant, unknown id) are reported in their own row…

Retry up to 50 failed/cancelled jobs in one call.

Per-item outcomes — non-retriable jobs (wrong status, cross-tenant,
unknown id) are reported in their own row without blocking the
others. Quota is checked once for the whole batch; if accepting all
valid items would push past, the whole batch is rejected (same
contract as `/trigger/batch`).

Idempotency is not supported at the batch level — each row creates a
fresh retry. To make a retry replay-safe, use `/jobs/&#123;id&#125;/retry`
one-by-one with an `Idempotency-Key`.

### Request body

`RetryBatchRequest`

<ParamField body="job_ids" type="string (uuid)[]" required>
  List of source job UUIDs to retry (1..50). Items are validated independently; non-retriable rows surface as per-row errors without blocking the rest.
</ParamField>

### Response

`RetryBatchResponse`

<ResponseField name="accepted" type="integer" required />

<ResponseField name="rejected" type="integer" required />

<ResponseField name="results" type="RetryBatchItemResult[]" required>
  <Expandable title="RetryBatchItemResult">
    <ResponseField name="source_job_id" type="string" required />

    <ResponseField name="new_job_id" type="string,null" />

    <ResponseField name="status" type="string,null" />

    <ResponseField name="error" type="string,null" />
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning             |
| ----- | ------------------- |
| `200` | Successful Response |
| `422` | Validation Error    |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.computer.stateset.app/api/v1/jobs/retry-batch' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "job_ids": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ]
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "accepted": 1,
    "rejected": 1,
    "results": [
      {
        "source_job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "new_job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "status": "pending",
        "error": "string"
      }
    ]
  }
  ```
</ResponseExample>
