For AI agents: markdown of this page — /docs-content-en/openlines/config/delete.md documentation index — /llms.txt
Delete Open Channel configuration
DELETE /v1/openline-configs/:id
Deletes an Open Channel configuration by ID. A deleted record cannot be restored via the API — create a new one if needed.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Parameterid (path) |
Typenumber | Requiredyes | DescriptionConfiguration ID. List: GET /v1/openline-configs |
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/openline-configs/29" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X DELETE "https://vibecode.bitrix24.com/v1/openline-configs/29" \
-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/openline-configs/29', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
if (success && data.deleted) {
console.log('Configuration deleted, ID:', data.id)
}
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/openline-configs/29', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
if (success && data.deleted) {
console.log('Configuration deleted, ID:', data.id)
}
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata.id |
Typenumber | DescriptionID of the deleted configuration |
Fielddata.deleted |
Typeboolean | Descriptiontrue on successful deletion |
Response example
{
"success": true,
"data": {
"id": 29,
"deleted": true
}
}
Error response example
404 — configuration not found:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "openlineConfig 99999 not found"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP400 | CodeINVALID_ID |
Descriptionid is not a positive integer |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe API key has no configured tokens |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key lacks the imopenlines scope |
| HTTP403 | CodeWRITE_BLOCKED_READONLY_KEY |
DescriptionThe key is read-only — see access rights |
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionA configuration with the given ID was not found |
Full list of common API errors — Errors.