Skip to main content
POST
/
batch
/
jobs
/
{id}
/
retry
curl -X POST https://api.u1.archetypeai.app/v0.5/batch/jobs/job_2abc3def4ghi5jkl6mno7pqr/retry \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "id": "job_2abc3def4ghi5jkl6mno7pqr",
  "status": "PENDING",
  "retry_count": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

This endpoint retries a job that is in FAILED or CANCELLED status. The job is re-queued with PENDING status and its retry count is incremented.

Request

id
string
required
The unique job identifier

Response

id
string
The job identifier
status
string
Updated job status (PENDING)
retry_count
integer
Updated retry count
curl -X POST https://api.u1.archetypeai.app/v0.5/batch/jobs/job_2abc3def4ghi5jkl6mno7pqr/retry \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "id": "job_2abc3def4ghi5jkl6mno7pqr",
  "status": "PENDING",
  "retry_count": 1
}
Only jobs in FAILED or CANCELLED status can be retried. Attempting to retry a job in any other state will return a 409 Conflict error.