#Openline configs

Entity: openlineConfig | Scope: imopenlines | Base path: /v1/openline-configs

SPA entity (camelCase field names) — field names pass through without transformation.

#Operations

Method Path Description Bitrix24 Method
GET /v1/openline-configs List all (with filter, sort, pagination) imopenlines.config.list.get
GET /v1/openline-configs/:id Get by ID imopenlines.config.get
POST /v1/openline-configs Create new imopenlines.config.add
PATCH /v1/openline-configs/:id Update by ID imopenlines.config.update
DELETE /v1/openline-configs/:id Delete by ID imopenlines.config.delete

#Fields

API Name Bitrix24 Name Type Readonly Description
id id number yes Идентификатор записи
name name string
active active boolean
lineId lineId number yes
queueType queueType string
agentId agentId number
workTimeFrom workTimeFrom string
workTimeTo workTimeTo string

#Examples

#List

Terminal
curl -X GET '/v1/openline-configs?limit=10' \
  -H 'X-Api-Key: YOUR_KEY'

#Get by ID

Terminal
curl -X GET '/v1/openline-configs/123' \
  -H 'X-Api-Key: YOUR_KEY'

#Create

Terminal
curl -X POST '/v1/openline-configs' \
  -H 'X-Api-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"name":"value","active":"true","queueType":"value"}'

#Update

Terminal
curl -X PATCH '/v1/openline-configs/123' \
  -H 'X-Api-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"title":"updated"}'

#Delete

Terminal
curl -X DELETE '/v1/openline-configs/123' \
  -H 'X-Api-Key: YOUR_KEY'

#Batch

Terminal
curl -X POST '/v1/batch' \
  -H 'X-Api-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"calls":[{"entity":"openline-configs","action":"list","params":{"limit":5}}]}'