[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fstickers\u002Fpack-update":3,"docs-tabs-chats\u002Fstickers\u002Fpack-update":6},{"content":4,"lastmod":5},"## Rename a pack\n\n`PATCH \u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F:packId`\n\nChanges the name of a user sticker pack — only the pack's author can rename it.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `packId` (path) | number | yes | Pack ID — `data.packs[].id` from the [list of packs](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpacks) |\n| `packType` (query) | string | yes | Pack type. Only `custom` packs can be changed |\n\n## Request body fields\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `name` | string | yes | New name: non-empty, up to 255 characters as stored by Bitrix24. An emoji above U+FFFF counts as 10 characters |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F3?packType=custom\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"Team stickers\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F3?packType=custom\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"Team stickers\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F3?packType=custom', {\n  method: 'PATCH',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY', 'Content-Type': 'application\u002Fjson' },\n  body: JSON.stringify({ name: 'Team stickers' }),\n})\n\nconst { success } = await res.json()\nconsole.log('Renamed:', success)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F3?packType=custom', {\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({ name: 'Team stickers' }),\n})\n\nconst { success } = await res.json()\nconsole.log('Renamed:', success)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.result` | boolean | `true` — the name was changed |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": { \"result\": true }\n}\n```\n\n## Error response example\n\n422 — the pack does not exist:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"PACK_NOT_FOUND\",\n    \"b24Code\": \"PACK_NOT_FOUND\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `MISSING_PARAMS` | The `name` field is missing |\n| 400 | `INVALID_PARAMS` | `name` is empty, not a string or longer than 255 characters, the body contains a field other than `name`, the body is not a JSON object, `packId` or `packType` is invalid, another query parameter was passed or a parameter was repeated. `packType` goes in the query parameters, not in the body |\n| 401 | `TOKEN_MISSING` | The key has no configured Bitrix24 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| 403 | `BITRIX_ACCESS_DENIED` | The pack is built-in or its author is another user |\n| 404 | `ENTITY_NOT_FOUND` | Bitrix24 did not find the object; the portal code is in `error.b24Code` if supplied |\n| 422 | `BITRIX_ERROR` | `error.b24Code`: `PACK_NOT_FOUND` — the pack does not exist, `EMPTY_PACK_NAME` — Bitrix24 considered the name empty |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a server error |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- A built-in pack and a user pack may have the same `id`, so `packType` is required.\n- Leading and trailing spaces are trimmed from the name. The name `0` counts as empty — the response is `422` with `error.b24Code` set to `EMPTY_PACK_NAME`.\n\n## See also\n\n- [List of packs](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpacks)\n- [Get a pack](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpack-get)\n- [Delete a pack](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpack-delete)\n","2026-10-06",{},1795415444979]