#Telephony lines
Entity: telephonyLine | Scope: telephony | Base path: /v1/telephony-lines
Legacy entity (UPPER_CASE field names) — field names are automatically converted to camelCase.
#Operations
| Method | Path | Description | Bitrix24 Method |
|---|---|---|---|
GET |
/v1/telephony-lines |
List all (with filter, sort, pagination) | telephony.externalLine.get |
POST |
/v1/telephony-lines |
Create new | telephony.externalLine.add |
PATCH |
/v1/telephony-lines/:id |
Update by ID | telephony.externalLine.update |
DELETE |
/v1/telephony-lines/:id |
Delete by ID | telephony.externalLine.delete |
Disabled operations:
get
#Fields
| API Name | Bitrix24 Name | Type | Readonly | Description |
|---|---|---|---|---|
id |
ID |
number | yes | Идентификатор записи |
number |
NUMBER |
string | ||
serverName |
SERVER_NAME |
string | ||
name |
NAME |
string |
#Examples
#List
curl -X GET '/v1/telephony-lines?limit=10' \
-H 'X-Api-Key: YOUR_KEY'
#Create
curl -X POST '/v1/telephony-lines' \
-H 'X-Api-Key: YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"number":"value","serverName":"value","name":"value"}'
#Update
curl -X PATCH '/v1/telephony-lines/123' \
-H 'X-Api-Key: YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"title":"updated"}'
#Delete
curl -X DELETE '/v1/telephony-lines/123' \
-H 'X-Api-Key: YOUR_KEY'
#Batch
curl -X POST '/v1/batch' \
-H 'X-Api-Key: YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"calls":[{"entity":"telephony-lines","action":"list","params":{"limit":5}}]}'