Functional call groups (sipkits)
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creating a new group
Request
Field Description: sipkit entity
POST /rest/v1/uc/sipkits HTTP/1.1
Content-Type: application/json; charset=utf-8
sipkit entity
Response
Field Description: 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"
}
}
Getting the list of groups
Request
Name | Type | Description |
---|---|---|
|
|
Filter by field values. |
|
|
List of fields to output. Available fields for output: id, name, type, details, enabled, cascade, priority, opts.title, ext.lwt, ext.ct. |
|
|
Offset in the list of resources to be issued. |
|
|
The maximum number of resources in the list. |
|
|
The sort order of the resources in the list. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/uc/sipkits?offset=0&limit=2 HTTP/1.1
Response
Field Description: 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"
}
}
]
Retrieving group data
Request
Name | Type | Description |
---|---|---|
|
|
A list of fields to output. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/uc/sipkits/182dc715-0186-7858-a770-7cd30a921f58 HTTP/1.1
Response
Field Description: 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"
}
}
Changing group data
Fields prohibited for modification: id
Request
Field Description: sipkit entity
PATCH /rest/v1/uc/sipkits/182dc715-0186-7858-a770-7cd30a921f58 HTTP/1.1
Content-Type: application/json; charset=utf-8
sipkit entity
Response
Field Description: 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"
}
}