[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-notifications\u002Fsettings\u002Fscheme":3,"docs-tabs-notifications\u002Fsettings\u002Fscheme":6},{"content":4,"lastmod":5},"## Switch the notification settings mode\n\n`PUT \u002Fv1\u002Fnotifications\u002Fsettings\u002Fscheme`\n\nSwitches the employee's notification settings mode: advanced or simple. In advanced mode, each event is configured separately. In simple mode, event settings are built from general channel switches.\n\n> **Important:** switching to simple mode (`simple`) overwrites the settings of every event. Switching back to advanced mode (`expert`) does not restore the previous event settings. Before switching to simple mode, save the [`GET \u002Fv1\u002Fnotifications\u002Fsettings`](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist) response. After the switch, event settings can be restored only with [`PATCH \u002Fv1\u002Fnotifications\u002Fsettings`](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Fupdate) calls, one event channel per call.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `scheme` | string | yes | Mode: `expert` — advanced, `simple` — simple. Case-sensitive: `SIMPLE` is rejected |\n| `userId` | number | no | ID of the employee whose mode to switch — a positive integer. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist). If omitted, the employee on whose behalf the call is made. Only a Bitrix24 administrator can switch another employee's mode |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PUT \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings\u002Fscheme\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"scheme\": \"expert\" }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PUT \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings\u002Fscheme\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"scheme\": \"expert\" }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings\u002Fscheme', {\n  method: 'PUT',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ scheme: 'expert' }),\n})\n\nconst { data } = await res.json()\nconsole.log('Modules:', data.length)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings\u002Fscheme', {\n  method: 'PUT',\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({ scheme: 'expert' }),\n})\n\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | The employee's settings after the switch — modules with events and channels in the same format as the [get settings](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist) response |\n\n## Response example\n\nOne module and some of its events are shown. The set of modules and events depends on the Bitrix24 account.\n\nHTTP 200:\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": \"im\",\n      \"label\": \"Chats and calls\",\n      \"notices\": [\n        {\n          \"id\": \"message\",\n          \"label\": \"Direct chat messages\",\n          \"site\": true,\n          \"mail\": false,\n          \"push\": false,\n          \"disabled\": [\"site\"]\n        },\n        {\n          \"id\": \"like\",\n          \"label\": \"Reactions to your messages\",\n          \"site\": false,\n          \"mail\": false,\n          \"push\": false,\n          \"disabled\": [\"push\"]\n        }\n      ]\n    }\n  ]\n}\n```\n\n## Error response example\n\n400 — the mode is not one of the allowed values:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Body field `scheme` must be one of: expert, simple.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `scheme` was not passed or is neither `expert` nor `simple`. Checked before the Bitrix24 call |\n| 400 | `INVALID_PARAMS` | `userId` is not a positive integer |\n| 400 | `INVALID_PARAMS` | The body contains a field other than `scheme` and `userId`, or the body is not a JSON object. The accepted fields are listed in `message` |\n| 400 | `INVALID_PARAMS` | A query parameter was passed. The operation accepts no query parameters |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n| 403 | `SCOPE_DENIED` | The key lacks the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 422 | `BITRIX_ERROR` | `userId` points to another employee, and the employee on whose behalf the call is made has no Bitrix24 administrator rights. The portal code `SETTINGS_ACCESS_DENIED` is in the `error.b24Code` field |\n| 502 | `ME_ALIAS_RESOLUTION_FAILED` | `userId` was not passed, and the employee on whose behalf the call is made could not be determined. The mode was not changed |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Get notification settings](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist)\n- [Change a notification setting](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Fupdate)\n- [Notification settings](\u002Fdocs\u002Fnotifications\u002Fsettings)\n","2026-10-08",{},1795415486985]