Update a Dataset Schema
Changed onUpdates the schema of an existing V4 dataset. Each successful update writes a new schema version.
Schema migration. If the dataset already had a schema, changing it starts an asynchronous schema migration that re-normalises the dataset's existing datapoints against the new version. In that case the response includes a migration_job_id; poll GET /datasets/{dataset_id}/schema-migrations/{job_id} with it until the job reaches a terminal status. When this is the dataset's first schema, no migration is needed and migration_job_id is omitted.
Constraints:
- V4 datasets only — a 400 is returned for V3 datasets.
- The task_group_id column designation cannot be changed once the dataset has datapoints; attempting to do so returns 400.
Request
- Base URLhttps://api.prolific.com
- URLhttps://api.prolific.com/api/v1/data-collection/datasets/{dataset_id}
- AuthAPI key in header Authorization
Path parameters
The unique identifier of the V4 dataset to update
Request body
Response
Dataset updated. Returns the updated dataset. When the update triggered a schema migration, migration_job_id is present — poll the schema-migration endpoint with it.
Changes
- info
added the new optional request property
/// - info
added the optional property
////to the response with the status
- info
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
tokenwas added to the API
- warning