Sync a Batch
Changed onTriggers an asynchronous sync job that materialises tasks for any datapoints appended to the batch's attached dataset since it was set up (or since the last sync). Returns immediately with a sync_id; the work is performed by a background worker.
The batch must be in READY status and have an attached dataset. Syncs for the same batch are serialised, so a new sync picks up wherever the previous one left off.
Poll GET /batches/{batch_id}/syncs/{sync_id} until the returned job reaches a terminal status (complete or failed).
Request
- Base URLhttps://api.prolific.com
- URLhttps://api.prolific.com/api/v1/data-collection/batches/{batch_id}/sync
- AuthAPI key in header Authorization
Path parameters
The unique identifier of the batch to sync
Response
Sync job accepted and queued. The returned job has status queued; poll the sync-status endpoint for progress.
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
tokenwas added to the API
- warning
- info
api operation id
sync-task-builder-batchremoved and replaced withaiTaskBuilder_SyncTaskBuilderBatch
- info