For AI agents: markdown of this page — /docs-content-en/entities/tasks/checklist-actions/members.md documentation index — /llms.txt
Add checklist item members
POST /v1/tasks/:taskId/checklist/:itemId/members
Adds employees as members of a task checklist item, and each of them becomes a member of the task itself in the same role — participant or observer.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ParametertaskId (path) |
Typenumber | Requiredyes | DescriptionTask ID, a positive integer. List: GET /v1/tasks |
ParameteritemId (path) |
Typenumber | Requiredyes | DescriptionChecklist item ID, a positive integer. List: GET /v1/tasks/:taskId/checklist |
Request fields (body)
| Field | Type | Required | Description |
|---|---|---|---|
Fieldmembers |
Typeobject | Requiredyes | DescriptionWho to add: the key is the employee ID, the value is the employee's role in the item. Employee list: GET /v1/users. An empty object {} changes nothing |
Fieldmembers.<userId> |
Typestring | object | Requiredno | DescriptionEmployee role — the string A or U, or the object { "TYPE": "U" }. The object key is TYPE in uppercase, unlike type when updating an item. A — participant, U — observer |
Examples
curl — personal key
curl -X POST "https://vibecode.bitrix24.com/v1/tasks/4218/checklist/276/members" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "members": { "1295": "A" } }'
curl — OAuth application
curl -X POST "https://vibecode.bitrix24.com/v1/tasks/4218/checklist/276/members" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "members": { "1295": "A" } }'
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/tasks/4218/checklist/276/members', {
method: 'POST',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ members: { '1295': 'A' } }),
})
const { success, data } = await res.json()
console.log('Item members:', data?.checkListItem?.members)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/tasks/4218/checklist/276/members', {
method: 'POST',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({ members: { '1295': 'A' } }),
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | Descriptiontrue if the request succeeded |
Fielddata.checkListItem |
Typeobject | DescriptionThe item after the members are added |
Fielddata.checkListItem.id |
Typenumber | DescriptionItem ID |
Fielddata.checkListItem.taskId |
Typenumber | DescriptionTask ID |
Fielddata.checkListItem.parentId |
Typenumber | DescriptionParent item ID. 0 means a top-level item |
Fielddata.checkListItem.title |
Typestring | DescriptionItem text |
Fielddata.checkListItem.sortIndex |
Typenumber | DescriptionSort index among items with the same parent |
Fielddata.checkListItem.displaySortIndex |
Typestring | DescriptionItem display number. The method does not populate it; an empty string is returned |
Fielddata.checkListItem.isComplete |
Typeboolean | DescriptionWhether the item is complete |
Fielddata.checkListItem.isImportant |
Typeboolean | DescriptionWhether the item is marked important |
Fielddata.checkListItem.completedCount |
Typenumber | DescriptionNumber of completed sub-items. The method does not recalculate it; 0 is returned |
Fielddata.checkListItem.createdBy |
Typenumber | DescriptionItem author ID. List: GET /v1/users |
Fielddata.checkListItem.userId |
Typenumber | DescriptionID of the employee on whose behalf the call is made |
Fielddata.checkListItem.copiedId |
Typenumber | null | DescriptionID of the source item if the item was copied. Otherwise null |
Fielddata.checkListItem.members |
Typearray | DescriptionItem members. Employees from the request body are returned with only type and id. Existing members are returned as full objects |
Fielddata.checkListItem.members[].type |
Typestring | DescriptionRole: A — participant, U — observer |
Fielddata.checkListItem.members[].id |
Typenumber | string | DescriptionEmployee ID. A number for employees from the request body, a string for existing members |
Fielddata.checkListItem.members[].name |
Typestring | DescriptionEmployee's first and last name. Existing members only |
Fielddata.checkListItem.members[].personalPhoto |
Typestring | null | DescriptionID of the profile photo file. Existing members only |
Fielddata.checkListItem.members[].personalGender |
Typestring | null | DescriptionGender from the profile. An empty string means the gender is not specified. Existing members only |
Fielddata.checkListItem.members[].image |
Typestring | DescriptionProfile photo URL. Existing members only |
Fielddata.checkListItem.members[].isCollaber |
Typeboolean | Descriptiontrue if this is an external collab member rather than a company employee. Existing members only |
Fielddata.checkListItem.attachments |
Typearray | object | DescriptionItem attachments. An empty array if there are none. For the object format, see Key fields |
Fielddata.checkListItem.nodeId |
Typenull | DescriptionNode key from saving the checklist. null in this method's response |
Response example
A participant is added; the item had no other members:
{
"success": true,
"data": {
"checkListItem": {
"id": 276,
"copiedId": null,
"userId": 1295,
"createdBy": 1295,
"parentId": 268,
"title": "Check the build",
"sortIndex": 1,
"displaySortIndex": "",
"isComplete": true,
"isImportant": true,
"completedCount": 0,
"members": [
{
"type": "A",
"id": 1295
}
],
"attachments": [],
"nodeId": null,
"taskId": 4218
}
}
}
The body { "members": {} } for an item that already has an observer: the members do not change, and the existing member is returned as a full object:
{
"success": true,
"data": {
"checkListItem": {
"id": 274,
"copiedId": null,
"userId": 1295,
"createdBy": 1295,
"parentId": 268,
"title": "Agree on the date",
"sortIndex": 2,
"displaySortIndex": "",
"isComplete": true,
"isImportant": false,
"completedCount": 0,
"members": [
{
"id": "1295",
"type": "U",
"name": "John Smith",
"personalPhoto": "33093",
"personalGender": "",
"image": "https://example.bitrix24.com/...",
"isCollaber": false
}
],
"attachments": [],
"nodeId": null,
"taskId": 4218
}
}
}
Error response example
422 — the role is neither A nor U:
{
"success": false,
"error": {
"code": "BITRIX_ERROR",
"message": "Unknown user type passed [X]",
"b24Code": "0"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP400 | CodeINVALID_PARAMS |
DescriptiontaskId is not a positive integer. Message taskId must be a positive integer |
| HTTP400 | CodeINVALID_PARAMS |
DescriptionitemId is not a positive integer. Message itemId must be a positive integer |
| HTTP400 | CodeINVALID_PARAMS |
DescriptionThe body is missing or is not a JSON object. Message JSON object body is required |
| HTTP400 | CodeINVALID_PARAMS |
Descriptionmembers is missing or is not an object, for example an array. Message members must be an object |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionX-Api-Key is not passed |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe key has no Bitrix24 tokens |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe key lacks the task scope |
| HTTP403 | CodeWRITE_BLOCKED_READONLY_KEY |
DescriptionThe key is in read-only mode. error.details.switchUrl contains the URL of the section where the mode is changed |
| HTTP415 | CodeFST_ERR_CTP_INVALID_MEDIA_TYPE |
DescriptionA body with a Content-Type the API does not parse, such as application/xml |
| HTTP422 | CodeBITRIX_ERROR |
DescriptionThe role is neither A nor U. The message is in the Bitrix24 account language, for example "Unknown user type passed [X]", where the brackets hold the passed role |
| HTTP422 | CodeBITRIX_ERROR |
DescriptionThe role is passed as an object without the TYPE key, for example { "type": "U" }. The message is in the Bitrix24 account language, for example "Unknown user type passed []" with empty brackets |
| HTTP404 | CodeTASK_NOT_FOUND |
DescriptionThe task is missing or inaccessible and the core returned the legacy named task-not-found signature |
| HTTP404 | CodeNOT_FOUND |
DescriptionThe itemId item is missing, belongs to another task or is inaccessible. This also covers an unnamed task access denial in Russian, English, German or Kazakh; this denial does not distinguish a missing task from denied access |
| HTTP422 | CodeBITRIX_ERROR |
DescriptionAnother Bitrix24 error, including an unrecognized core denial |
| HTTP429 | CodeRATE_LIMITED |
DescriptionRequest rate exceeded. The effective cap is in the x-ratelimit-limit header |
Full list of common API errors — Errors.
Known specifics
A member can be removed by updating the item. The member removal method does not work for this: it finds a member by position in the list, not by ID. Details — What to know before you start.
An employee with a low ID can displace another member. If the ID of the employee being added matches a member's position in the item's members list — positions are counted from 0 — the new employee takes that position and the previous member drops out of the item. The response is still 200. For example, an employee with ID 1 added to an item with two members displaces the second one. When the item already has members, check the member list with Get a checklist item after the call, or set the full list with Update a checklist item using the members field.
A repeated call with a different role adds a second role instead of changing the first one. If the employee already has the participant role on the item, a call with role U leaves them in the item with both roles, and in the task they become both a participant and an observer. A repeated call with the same role does not duplicate the member, although the response lists the employee once more as a short object.
The employee ID is not checked. A nonexistent ID with role A is accepted with a 200 response and is added both to the item members and to the task participants. Check the ID with GET /v1/users before the call.