[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Ftasks\u002Fchecklist-actions\u002Fmembers":3,"docs-tabs-entities\u002Ftasks\u002Fchecklist-actions\u002Fmembers":6},{"content":4,"lastmod":5},"## Add checklist item members\n\n`POST \u002Fv1\u002Ftasks\u002F:taskId\u002Fchecklist\u002F:itemId\u002Fmembers`\n\nAdds 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.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `taskId` (path) | number | yes | Task ID, a positive integer. List: [`GET \u002Fv1\u002Ftasks`](\u002Fdocs\u002Fentities\u002Ftasks\u002Flist) |\n| `itemId` (path) | number | yes | Checklist item ID, a positive integer. List: [`GET \u002Fv1\u002Ftasks\u002F:taskId\u002Fchecklist`](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist\u002Flist) |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `members` | object | yes | Who to add: the key is the employee ID, the value is the employee's role in the item. Employee list: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist). An empty object `{}` changes nothing |\n| `members.\u003CuserId>` | string \\| object | no | Employee role — the string `A` or `U`, or the object `{ \"TYPE\": \"U\" }`. The object key is `TYPE` in uppercase, unlike `type` when [updating an item](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist\u002Fupdate). `A` — participant, `U` — observer |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F4218\u002Fchecklist\u002F276\u002Fmembers\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"members\": { \"1295\": \"A\" } }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F4218\u002Fchecklist\u002F276\u002Fmembers\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"members\": { \"1295\": \"A\" } }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F4218\u002Fchecklist\u002F276\u002Fmembers', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ members: { '1295': 'A' } }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('Item members:', data?.checkListItem?.members)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F4218\u002Fchecklist\u002F276\u002Fmembers', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ members: { '1295': 'A' } }),\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` if the request succeeded |\n| `data.checkListItem` | object | The item after the members are added |\n| `data.checkListItem.id` | number | Item ID |\n| `data.checkListItem.taskId` | number | Task ID |\n| `data.checkListItem.parentId` | number | Parent item ID. `0` means a top-level item |\n| `data.checkListItem.title` | string | Item text |\n| `data.checkListItem.sortIndex` | number | Sort index among items with the same parent |\n| `data.checkListItem.displaySortIndex` | string | Item display number. The method does not populate it; an empty string is returned |\n| `data.checkListItem.isComplete` | boolean | Whether the item is complete |\n| `data.checkListItem.isImportant` | boolean | Whether the item is marked important |\n| `data.checkListItem.completedCount` | number | Number of completed sub-items. The method does not recalculate it; `0` is returned |\n| `data.checkListItem.createdBy` | number | Item author ID. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data.checkListItem.userId` | number | ID of the employee on whose behalf the call is made |\n| `data.checkListItem.copiedId` | number \\| null | ID of the source item if the item was copied. Otherwise `null` |\n| `data.checkListItem.members` | array | Item members. Employees from the request body are returned with only `type` and `id`. Existing members are returned as full objects |\n| `data.checkListItem.members[].type` | string | Role: `A` — participant, `U` — observer |\n| `data.checkListItem.members[].id` | number \\| string | Employee ID. A number for employees from the request body, a string for existing members |\n| `data.checkListItem.members[].name` | string | Employee's first and last name. Existing members only |\n| `data.checkListItem.members[].personalPhoto` | string \\| null | ID of the profile photo file. Existing members only |\n| `data.checkListItem.members[].personalGender` | string \\| null | Gender from the profile. An empty string means the gender is not specified. Existing members only |\n| `data.checkListItem.members[].image` | string | Profile photo URL. Existing members only |\n| `data.checkListItem.members[].isCollaber` | boolean | `true` if this is an external collab member rather than a company employee. Existing members only |\n| `data.checkListItem.attachments` | array \\| object | Item attachments. An empty array if there are none. For the object format, see [Key fields](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist-actions#key-fields) |\n| `data.checkListItem.nodeId` | null | Node key from saving the checklist. `null` in this method's response |\n\n## Response example\n\nA participant is added; the item had no other members:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"checkListItem\": {\n      \"id\": 276,\n      \"copiedId\": null,\n      \"userId\": 1295,\n      \"createdBy\": 1295,\n      \"parentId\": 268,\n      \"title\": \"Check the build\",\n      \"sortIndex\": 1,\n      \"displaySortIndex\": \"\",\n      \"isComplete\": true,\n      \"isImportant\": true,\n      \"completedCount\": 0,\n      \"members\": [\n        {\n          \"type\": \"A\",\n          \"id\": 1295\n        }\n      ],\n      \"attachments\": [],\n      \"nodeId\": null,\n      \"taskId\": 4218\n    }\n  }\n}\n```\n\nThe 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:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"checkListItem\": {\n      \"id\": 274,\n      \"copiedId\": null,\n      \"userId\": 1295,\n      \"createdBy\": 1295,\n      \"parentId\": 268,\n      \"title\": \"Agree on the date\",\n      \"sortIndex\": 2,\n      \"displaySortIndex\": \"\",\n      \"isComplete\": true,\n      \"isImportant\": false,\n      \"completedCount\": 0,\n      \"members\": [\n        {\n          \"id\": \"1295\",\n          \"type\": \"U\",\n          \"name\": \"John Smith\",\n          \"personalPhoto\": \"33093\",\n          \"personalGender\": \"\",\n          \"image\": \"https:\u002F\u002Fexample.bitrix24.com\u002F...\",\n          \"isCollaber\": false\n        }\n      ],\n      \"attachments\": [],\n      \"nodeId\": null,\n      \"taskId\": 4218\n    }\n  }\n}\n```\n\n## Error response example\n\n422 — the role is neither `A` nor `U`:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"Unknown user type passed [X]\",\n    \"b24Code\": \"0\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `taskId` is not a positive integer. Message `taskId must be a positive integer` |\n| 400 | `INVALID_PARAMS` | `itemId` is not a positive integer. Message `itemId must be a positive integer` |\n| 400 | `INVALID_PARAMS` | The body is missing or is not a JSON object. Message `JSON object body is required` |\n| 400 | `INVALID_PARAMS` | `members` is missing or is not an object, for example an array. Message `members must be an object` |\n| 401 | `MISSING_API_KEY` | `X-Api-Key` is not passed |\n| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens |\n| 403 | `SCOPE_DENIED` | The key lacks the `task` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode. `error.details.switchUrl` contains the URL of the section where the mode is changed |\n| 415 | `FST_ERR_CTP_INVALID_MEDIA_TYPE` | A body with a `Content-Type` the API does not parse, such as `application\u002Fxml` |\n| 422 | `BITRIX_ERROR` | The 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 |\n| 422 | `BITRIX_ERROR` | The 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 |\n| 404 | `TASK_NOT_FOUND` | The task is missing or inaccessible and the core returned the legacy named task-not-found signature |\n| 404 | `NOT_FOUND` | The `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 |\n| 422 | `BITRIX_ERROR` | Another Bitrix24 error, including an unrecognized core denial |\n| 429 | `RATE_LIMITED` | Request rate exceeded. The effective cap is in the `x-ratelimit-limit` header |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**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](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist-actions#what-to-know-before-you-start).\n\n**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](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist\u002Fget) after the call, or set the full list with [Update a checklist item](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist\u002Fupdate) using the `members` field.\n\n**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.\n\n**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 \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) before the call.\n\n## See also\n\n- [Checklist actions and task file](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist-actions)\n- [Update a checklist item](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist\u002Fupdate)\n- [List checklist items](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist\u002Flist)\n- [Save a task checklist](\u002Fdocs\u002Fentities\u002Ftasks\u002Fchecklist-actions\u002Ftree)\n- [Get task](\u002Fdocs\u002Fentities\u002Ftasks\u002Fget)\n- [List employees](\u002Fdocs\u002Fentities\u002Fusers\u002Flist)\n","2026-11-12",{},1795415311746]