[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fmembers\u002Fmanagers-remove":3,"docs-tabs-chats\u002Fmembers\u002Fmanagers-remove":6},{"content":4,"lastmod":5},"## Remove managers\n\n`DELETE \u002Fv1\u002Fchats\u002F:dialogId\u002Fmanagers`\n\nTakes the manager role away from the given users. They stay in the chat as members. Only a new [assignment](\u002Fdocs\u002Fchats\u002Fmembers\u002Fmanagers-add) gives the role back.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `dialogId` (path) | string | yes | Group chat identifier `chatXXX`. A personal dialog is rejected |\n| `userIds` (query) | string | yes | From 1 to 50 user IDs separated by commas, for example `5,7`. Each is a positive integer without spaces or leading zeros. A repeated ID is allowed and counts toward the 50 |\n\nThe request takes no body: a body field, another parameter or a repeated parameter is rejected with `400 INVALID_PARAMS`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat42\u002Fmanagers?userIds=7\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat42\u002Fmanagers?userIds=7\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat42\u002Fmanagers?userIds=7', {\n  method: 'DELETE',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { success, data } = await res.json()\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat42\u002Fmanagers?userIds=7', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.result` | boolean | `true` — the request was carried out. It does not confirm that each of the given users was a manager |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"result\": true\n  }\n}\n```\n\n## Error response example\n\n400 — IDs in the wrong format:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"`userIds` must be 1-50 Bitrix24 user ids separated by commas (4,7), each a positive integer without spaces or leading zeros.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `userIds` is absent, holds more than 50 IDs or an ID that is not a positive integer; another parameter, a repeated parameter or a body field. Checked before any call to Bitrix24 |\n| 403 | `BITRIX_ACCESS_DENIED` | No right to change the managers, or `dialogId` is a personal dialog |\n| 403 | `SCOPE_DENIED` | The API key does not have the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is read-only — see [access rights](\u002Fdocs\u002Faccess-rights) |\n| 401 | `TOKEN_MISSING` | The API key has no Bitrix24 tokens configured |\n| 404 | `ENTITY_NOT_FOUND` | Bitrix24 returned \"not found\"; the portal code is in `error.b24Code` |\n| 422 | `BITRIX_ERROR` | Bitrix24 returned an error; the portal code is in `error.b24Code`. A missing chat lands here with the code `CHAT_NOT_FOUND` |\n| 502 | `ME_ALIAS_RESOLUTION_FAILED` | The user could not be resolved for the `me` alias |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**The IDs go in the query.** A `DELETE` body does not pass through every proxy, so the list is passed in the query string.\n\n**A user without the role is skipped** without an error, and the response stays the same. The [membership records](\u002Fdocs\u002Fchats\u002Fmembers\u002Frelations) show the result.\n\n## See also\n\n- [Add managers](\u002Fdocs\u002Fchats\u002Fmembers\u002Fmanagers-add)\n- [Replace managers](\u002Fdocs\u002Fchats\u002Fmembers\u002Fmanagers-set)\n- [Membership records](\u002Fdocs\u002Fchats\u002Fmembers\u002Frelations)\n- [Chat members](\u002Fdocs\u002Fchats\u002Fmembers)\n","2026-10-15",{},1794739543984]