For AI agents: markdown of this page — /docs-content-en/chats/stickers/link-delete.md documentation index — /llms.txt
Remove a pack
DELETE /v1/chats/stickers/packs/:packId/link
Removes an added user sticker pack from the current user's list of packs. The pack stays with its author and with other users, and it can be added again. The author cannot remove their own pack, only delete it.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ParameterpackId (path) |
Typenumber | Requiredyes | DescriptionPack ID — data.packs[].id from the list of packs |
ParameterpackType (query) |
Typestring | Requiredyes | DescriptionPack type. Only custom can be removed |
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/chats/stickers/packs/3/link?packType=custom" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X DELETE "https://vibecode.bitrix24.com/v1/chats/stickers/packs/3/link?packType=custom" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/chats/stickers/packs/3/link?packType=custom', {
method: 'DELETE',
headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
const { success } = await res.json()
console.log('Removed:', success)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/chats/stickers/packs/3/link?packType=custom', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success } = await res.json()
console.log('Removed:', success)
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata.result |
Typeboolean | Descriptiontrue — the pack was removed from the list |
Response example
{
"success": true,
"data": { "result": true }
}
Error response example
422 — the pack does not exist:
{
"success": false,
"error": {
"code": "BITRIX_ERROR",
"message": "PACK_NOT_FOUND",
"b24Code": "PACK_NOT_FOUND"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP400 | CodeINVALID_PARAMS |
DescriptionpackId is not a positive integer, packType is missing or invalid, another parameter or body field was passed, a parameter was repeated |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe key has no configured Bitrix24 tokens |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe key lacks the im scope |
| HTTP403 | CodeWRITE_BLOCKED_READONLY_KEY |
DescriptionThe key is in read-only mode |
| HTTP403 | CodeBITRIX_ACCESS_DENIED |
DescriptionThe pack is built-in or it is the user's own pack |
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionBitrix24 did not find the object; the portal code is in error.b24Code if supplied |
| HTTP422 | CodeBITRIX_ERROR |
Descriptionerror.b24Code: PACK_NOT_FOUND — the pack does not exist |
| HTTP502 | CodeBITRIX_UNAVAILABLE |
DescriptionBitrix24 is unavailable or returned a server error |
Full list of common API errors — Errors.
Known specifics
- Removing an existing pack that is not in the user's list succeeds without an error.