Skip to main content
POST
/
place_enrichment
/
batches
/
{batch_id}
/
reprocess
Reprocess a batch
curl --request POST \
  --url https://api.repromptai.com/v1/{org}/place_enrichment/batches/{batch_id}/reprocess \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "failed_only": true,
  "incomplete_only": false,
  "refresh": false,
  "attributes": [
    "websites",
    "phoneNumbers",
    "categories"
  ]
}'
{
  "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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

apiKey
string | null

Path Parameters

batch_id
string
required

Body

application/json
failed_only
boolean
default:true

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

incomplete_only
boolean
default:false

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

refresh
boolean
default:false

When true, force fresh enrichment ignoring cached data.

attributes
string[] | null

List of specific attributes to enrich (e.g. 'websites', 'phoneNumbers'). If provided, overrides attribute_set.

attribute_set
string | null

Predefined group of attributes to enrich: 'core', 'all', or 'open_closed'

Response

Successfully initiated batch reprocessing

The response is of type any.

I