Create a new participant group within a workspace

View as MarkdownOpen in Claude

Authentication

Authorizationstring
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>`.

Request

This endpoint expects an object.
namestringRequired
The name of the participant group
workspace_idstringOptional
The id of the workspace to create the participant group in. Either a workspace or organisation ID must be specified.
organisation_idstringOptional
The id of the organisation to create the participant group in. Either a workspace or organisation ID must be specified.
descriptionstringOptional
A description of the participant group
participant_idslist of stringsOptional
The ids of participants to be initially added to the group

Response

Participant group created
descriptionstring or null

The user-provided description of the participant group

feeder_studieslist of objects or null
Details of all studies which are configured to modify the participants in this group through completion codes.
idstring or null
The id of the participant group
is_deletedboolean or null
Whether the participant group has been deleted
namestring or null
The name of the participant group
organisation_idstring or null
The id of the organisation the participant group belongs to. A participant group can only belong to either a workspace or an organisation.
participant_countinteger or null
The number of participants in the participant group
workspace_idstring or null
The id of the workspace the participant group belongs to. A participant group can only belong to either a workspace or an organisation.
project_idstring or nullDeprecated
The id of the project the participant group belongs to

Errors