Update a Batch

View as MarkdownOpen in Claude
Update an existing AI Task Builder batch. You can update the name, task details, associated dataset, and/or `batch_items`. The dataset does not need to be in READY status for updates. When updating `batch_items`, include the `id` of any existing pages, rows, columns, or items you want to preserve — items without an `id` are treated as new and assigned one server-side. Omitting an existing `id` removes that entry. The same validation rules as on create apply, and validation failures return **`422 Unprocessable Entity`** with the `BatchItemsValidationError` payload.

Authentication

AuthorizationToken
The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings. Your API token does not have an expiry date and carries full permission, so be sure to keep them secure. If your token is leaked, delete it and create a new one directly in the app. In your requests add `Authorization` header with the value `Token <your token>`.

Path parameters

batch_idstringRequired
The unique identifier of the batch

Request

This endpoint expects an object.
namestringOptional
task_detailsobjectOptional
dataset_idstringOptionalformat: "uuid"
batch_itemslist of objects or nullOptional

Replacement layout for the batch’s instructions and content. Include the id of any existing pages, rows, columns, or items you want to preserve; omit id to add new entries. Items absent from the payload are removed.

Response

Ok
idstringformat: "uuid"
created_atdatetime

An ISO-8601 formatted string representing the batch creation time, in UTC.

created_bystring
User ID of the Prolific user that created the resource.
datasetslist of objects
namestring
statusenum
total_task_countinteger>=0
total_instruction_countinteger>=0
workspace_idstring
schema_versioninteger
task_detailsobject
total_task_groupsinteger>=0
batch_itemslist of objects or null

The persisted batch_items layout, populated when the batch was created with batch_items. null for legacy batches authored via the standalone instructions endpoint. Every page, row, column, and item carries a server-assigned id.

Errors

400
Bad Request Error
4XX
Client Request Error
422
Unprocessable Entity Error