[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-notifications\u002Fsettings\u002Fupdate":3,"docs-tabs-notifications\u002Fsettings\u002Fupdate":6},{"content":4,"lastmod":5},"## Change a notification setting\n\n`PATCH \u002Fv1\u002Fnotifications\u002Fsettings`\n\nTurns one of an employee's notification delivery channels — `site`, `mail` or `push` — on or off for a single event of a Bitrix24 account module.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `module` | string | yes | Module identifier, 1 to 255 characters. List: `data[].id` in the [`GET \u002Fv1\u002Fnotifications\u002Fsettings`](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist) response |\n| `event` | string | yes | Identifier of an event of this module, 1 to 255 characters. List: `data[].notices[].id` in the same response |\n| `channel` | string | yes | Delivery channel: `site`, `mail` or `push` |\n| `enabled` | boolean | yes | `true` — turn the channel on, `false` — turn it off |\n| `userId` | number | no | ID of the employee whose setting to change — 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 change another employee's settings |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"module\": \"bizproc\", \"event\": \"activity\", \"channel\": \"site\", \"enabled\": false }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"module\": \"bizproc\", \"event\": \"activity\", \"channel\": \"site\", \"enabled\": false }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ module: 'bizproc', event: 'activity', channel: 'site', enabled: false }),\n})\nconst { data } = await res.json()\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsettings', {\n  method: 'PATCH',\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({ module: 'bizproc', event: 'activity', channel: 'site', enabled: false }),\n})\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data` | boolean | Always `true`, including when the setting did not change |\n\n## Response example\n\nHTTP 200:\n\n```json\n{\n  \"success\": true,\n  \"data\": true\n}\n```\n\n## Error response example\n\n400 — the channel is not one of the allowed values:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Body field `channel` must be one of: site, mail, push.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `module` or `event` was not passed, is empty or longer than 255 characters. The field is named in `message`. Checked before the Bitrix24 call |\n| 400 | `INVALID_PARAMS` | `channel` is none of `site`, `mail` or `push` |\n| 400 | `INVALID_PARAMS` | `enabled` was not passed or is neither `true` nor `false`. The string `\"true\"` and the number `1` are rejected |\n| 400 | `INVALID_PARAMS` | `userId` is not a positive integer |\n| 400 | `INVALID_PARAMS` | The body contains a field that is not in the \"Request fields\" table, 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 setting was not changed |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- A `true` response does not confirm the change. In two cases the setting stays unchanged, yet the response is still `true`: the channel is in `disabled` for this event, or the Bitrix24 account has no module or event with this identifier. To check the result, read the settings again with [`GET \u002Fv1\u002Fnotifications\u002Fsettings`](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist).\n\n## See also\n\n- [Get notification settings](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist)\n- [Switch the notification settings mode](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Fscheme)\n- [Notification settings](\u002Fdocs\u002Fnotifications\u002Fsettings)\n","2026-10-08",{},1795415487113]