Функциональные группы вызова (sipkits)
Запросы
HTTP verb | Endpoint | Описание |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Создание новой группы
Запрос
Описание полей: sipkit entity
POST /rest/v1/uc/sipkits HTTP/1.1
Content-Type: application/json; charset=utf-8
sipkit entity
Ответ
Описание полей: sipkit entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "182dc715-0186-7858-a770-7cd30a921f58",
"name": "chief 101",
"enabled": true,
"cascade": false,
"priority": "115",
"type": "chief",
"details": {
"chief_number": "101",
"assistant1_number": "102",
"assistant2_number": "103",
"mode": "direct",
"direct_numbers": [
"115", "123"
]
},
"opts": {
"comment": "",
"title": ""
},
"ext": {
"ct": "2023-02-22T08:58:41.391Z",
"lwt": "2023-03-01T07:13:17.076Z"
}
}
Получение списка групп
Запрос
Имя | Тип | Описание |
---|---|---|
|
|
Фильтр по значениям полей. |
|
|
Список полей для вывода. Доступные поля для выдачи: id, name, type, details, enabled, cascade, priority, opts.title, ext.lwt, ext.ct. |
|
|
Смещение в списке ресурсов, подлежащих выдаче. |
|
|
Максимальное количество ресурсов в списке. |
|
|
Порядок сортировки ресурсов в списке. |
|
|
Преобразование в плоский вид составных полей. |
GET /rest/v1/uc/sipkits?offset=0&limit=2 HTTP/1.1
Ответ
Описание полей: sipkit entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"id": "182dc715-0186-7858-a770-7cd30a921f58",
"name": "chief 101",
"enabled": true,
"cascade": false,
"priority": "115",
"type": "chief",
"details": {
"chief_number": "101",
"assistant1_number": "102",
"assistant2_number": "103",
"mode": "direct",
"direct_numbers": [
"115", "123"
]
},
"opts": {
"comment": "",
"title": ""
},
"ext": {
"ct": "2023-02-22T08:58:41.391Z",
"lwt": "2023-03-01T07:13:17.076Z"
}
},
{
"id": "15151515-1515-1515-1515-7cd30a921f58",
"name": "parallel 11,12",
"enabled": true,
"cascade": false,
"priority": "120",
"type": "parallel",
"details": {
"filter_by": "*",
"filter_from": "14",
"numbers_to": [
"11",
"12"
],
"numbers_parallel": [
"12",
"11"
]
},
"opts": {
"comment": "",
"title": ""
},
"ext": {
"ct": "2023-02-22T08:58:41.391Z",
"lwt": "2023-03-01T07:13:17.076Z"
}
}
]
Получение данных группы
Запрос
Имя | Тип | Описание |
---|---|---|
|
|
Список полей для вывода. |
|
|
Преобразование в плоский вид составных полей. |
GET /rest/v1/uc/sipkits/182dc715-0186-7858-a770-7cd30a921f58 HTTP/1.1
Ответ
Описание полей: sipkit entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "182dc715-0186-7858-a770-7cd30a921f58",
"name": "chief 101",
"enabled": true,
"cascade": false,
"priority": "115",
"type": "chief",
"details": {
"chief_number": "101",
"assistant1_number": "102",
"assistant2_number": "103",
"mode": "direct",
"direct_numbers": [
"115", "123"
]
},
"opts": {
"comment": "",
"title": ""
},
"ext": {
"ct": "2023-02-22T08:58:41.391Z",
"lwt": "2023-03-01T07:13:17.076Z"
}
}
Изменение данных группы
Поля запрещенные для изменения: id
Запрос
Описание полей: sipkit entity
PATCH /rest/v1/uc/sipkits/182dc715-0186-7858-a770-7cd30a921f58 HTTP/1.1
Content-Type: application/json; charset=utf-8
sipkit entity
Ответ
Описание полей: sipkit entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "182dc715-0186-7858-a770-7cd30a921f58",
"name": "chief 101",
"enabled": true,
"cascade": false,
"priority": "115",
"type": "chief",
"details": {
"chief_number": "101",
"assistant1_number": "102",
"assistant2_number": "103",
"mode": "direct",
"direct_numbers": [
"115", "123"
]
},
"opts": {
"comment": "",
"title": ""
},
"ext": {
"ct": "2023-02-22T08:58:41.391Z",
"lwt": "2023-03-01T07:13:17.076Z"
}
}