cURL
curl --request POST \ --url https://api.promptloop.com/v0.1/batches/{id}/retry \ --header 'x-api-key: <api-key>'
{ "status": "success", "data": { "batch_id": "a427201b-2340-4f06-ad68-2da8e0fdb120", "jobs_retried": 10, "batch_reactivated": false }, "message": "<string>", "error": { "code": 123, "details": "<string>" } }
Retries failed jobs in a batch. This will re-queue all failed jobs for processing. If the batch was cancelled, it will be reactivated.
Batch ID to retry
Only retry failed jobs (default: true). Set to false to retry all non-completed jobs.
Failed jobs successfully re-queued
success
error
"success"
Show child attributes