Skip to content

Reprocess Batch Endpoint

POST
/v1/batches/{batch_id}/reprocess
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.

batch_id
required
Batch Id
string
Media type application/json
Any of:
BatchReprocessPayload
object
output_mode
Any of:
string
processing_mode
Any of:
string
Example generated
{
"output_mode": "example",
"processing_mode": "example"
}

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>
ValidationError
object
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": {}
}
]
}