RepromptDocs
Batches

Reprocess a batch

POST
/place_enrichment/batches/{batch_id}/reprocess

Reprocess jobs in a specific batch.

You can specify which attributes to process by providing:

  • 'attributes': A list of specific attributes to enrich (e.g., ["websites", "phoneNumbers", "categories"])

If not provided, "core" attributes will be processed: websites, phoneNumbers, openingHours, names, address, categories, closed_permanently

Options:

  • failed_only: When true, only reprocess jobs with 'failed' status. When false, reprocess all jobs in the batch.
  • incomplete_only: When true, only reprocess jobs with 'pending' or 'in_progress' status. When false, reprocess all jobs in the batch (unless failed_only is true).

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

batch_id*Batch Id

Header Parameters

apiKey?string|null

Request Body

application/json
  1. body
failed_only?boolean

When true, only reprocess jobs with 'failed' status. When false, reprocess all jobs in the batch.

Defaulttrue
incomplete_only?boolean

When true, only reprocess jobs with 'pending' or 'in_progress' status. When false, reprocess all jobs in the batch (unless failed_only is true).

Defaultfalse
refresh?boolean

When true, force fresh enrichment ignoring cached data.

Defaultfalse
attributes?array<string>

List of specific attributes to enrich (e.g. 'websites', 'phoneNumbers').

Response Body

Successfully initiated batch reprocessing

response?unknownapplication/json
Example Request
curl -X POST 'https://api.repromptai.com/v1/reprompt/place_enrichment/batches/string/reprocess' \  -H 'Content-Type: application/json' \  -d '{  "failed_only": true,  "incomplete_only": false,  "refresh": false,  "attributes": [    "websites",    "phoneNumbers",    "categories"  ]}'
Example Response
{  "status": "success",  "message": "Started reprocessing 42 FAILED jobs from batch batch_2024_04_01_123456",  "job_count": 42,  "batch_id": "batch_2024_04_01_123456",  "excluded_deferred_count": 5}