Retry Document Job Endpoint
POST
/v1/documents/{job_id}/retry
const url = 'http://localhost:8080/v1/documents/example/retry';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/documents/example/retryRe-enqueue a failed or rejected job with the same input.
Status guard relaxed from {failed} to {failed, rejected} —
catastrophic schema violations look the same as a transient failure
to a “same input, same settings” operator. Use /reprocess to
swap templates or to re-run a completed / needs_review
job. The body of the mutation lives in
api.services.jobs.retry_document_job so this route is a pure
permission + error-mapping shim.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” job_id
required
Job Id
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}