Update a Collection

View as MarkdownOpen in Claude

Update an existing AI Task Builder Collection. This is a full replacement — all fields must be provided.

To preserve existing entities (collection items, page items) when updating, include their id fields in the request. Entities without IDs will be created as new, and existing entities not included in the request will be deleted.

Authentication

AuthorizationToken

Header authentication of the form Token <token>

Path parameters

collection_idstringRequired

Request

This endpoint expects an object.
namestringRequired
The name of the collection
task_detailsobjectRequired
Task metadata displayed to participants
collection_itemslist of objectsRequired

Pages within the collection. Include id to preserve existing items.

Response

OK
idstringformat: "uuid"
schema_versionenum
Allowed values:
created_atdatetime

ISO-8601 formatted creation timestamp in UTC

created_bystring
User ID of the Prolific user that created the collection
workspace_idstring
The ID of the Prolific workspace
namestring
The name of the collection
task_detailsobject
Task metadata displayed to participants
collection_itemslist of objects
Pages within the collection. Each collection item represents a page.
last_modified_atdatetime or null

ISO-8601 formatted last modification timestamp in UTC

last_modified_bystring or null
User ID of the Prolific user that last modified the collection

Errors