Reprocess Batch Endpoint
POST
/v1/batches/{batch_id}/reprocess
const url = 'https://docstack.nvc.nxu.ae/v1/batches/example/reprocess';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"output_mode":"example","processing_mode":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://docstack.nvc.nxu.ae/v1/batches/example/reprocess \ --header 'Content-Type: application/json' \ --data '{ "output_mode": "example", "processing_mode": "example" }'Re-enqueue every settled job in the batch (full re-run).
The sanctioned way to regenerate a corpus after a pipeline / template upgrade — dedup-immune (existing rows are re-queued, no new submissions). Queued / processing jobs are skipped so the call is idempotent and safe while a drain is in flight.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” batch_id
required
Batch Id
string
Request Body
Section titled “Request Body ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response Reprocess Batch Endpoint V1 Batches Batch Id Reprocess Post
object
key
additional properties
any
Example generated
{}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": {} } ]}