Batches
Reprocess a batch
POST
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).
HTTPBearerheader
AuthorizationBearer <token>batch_id*Batch IdapiKey?string|nullapplication/json- body
failed_only?booleanWhen true, only reprocess jobs with 'failed' status. When false, reprocess all jobs in the batch.
Default
trueincomplete_only?booleanWhen true, only reprocess jobs with 'pending' or 'in_progress' status. When false, reprocess all jobs in the batch (unless failed_only is true).
Default
falserefresh?booleanWhen true, force fresh enrichment ignoring cached data.
Default
falseattributes?array<string>List of specific attributes to enrich (e.g. 'websites', 'phoneNumbers').
Successfully initiated batch reprocessing
response?unknownapplication/jsonExample 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}