Rules for access to subscriber functions (featurerules)
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creating a new rule
Request
Field Description: featurerule entity
POST /rest/v1/uc/featurerules HTTP/1.1
Content-Type: application/json; charset=utf-8
featurerule entity
Response
Field Description: featurerule entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "be95db11-0186-7a1b-9d21-7cd30a921f58",
"name": "num 14",
"enabled": true,
"filter_from": "14",
"filter_to": "*",
"priority": "115",
"types": [
"intercom",
"pickup",
"blf",
"blf_details"
],
"opts": {
"comment": "",
"tab": [],
"title": ""
},
"ext": {
"ct": "2023-02-22T17:11:15.487Z",
"lwt": "2023-02-22T17:11:28.983Z"
}
}
Getting the list of rules
Request
Name | Type | Description |
---|---|---|
|
|
Filter by field values. |
|
|
List of fields to output. Available fields for output: id, prefix, type, extension, 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/featurerules?filter={"type":"ivr"}&offset=0&limit=2 HTTP/1.1
Response
Field Description: featurerule entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"id": "be95db11-0186-7a1b-9d21-7cd30a921f58",
"name": "num 14",
"enabled": true,
"filter_from": "14",
"filter_to": "*",
"priority": "115",
"types": [
"intercom",
"pickup",
"blf",
"blf_details"
],
"opts": {
"comment": "",
"title": ""
},
"ext": {
"ct": "2023-02-22T17:11:15.487Z",
"lwt": "2023-02-22T17:11:28.983Z"
}
}
]
Obtaining rule data
Request
Name | Type | Description |
---|---|---|
|
|
A list of fields to output. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/uc/featurerules/dccd337a-016c-d1cf-7393-50e54938780c HTTP/1.1
Response
Field Description: featurerule entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "be95db11-0186-7a1b-9d21-7cd30a921f58",
"name": "num 14",
"enabled": true,
"filter_from": "14",
"filter_to": "*",
"priority": "115",
"types": [
"intercom",
"pickup",
"blf",
"blf_details"
],
"opts": {
"comment": "",
"tab": [],
"title": ""
},
"ext": {
"ct": "2023-02-22T17:11:15.487Z",
"lwt": "2023-02-22T17:11:28.983Z"
}
}
Changing the rule data
Fields prohibited for modification: id
Request
Field Description: featurerule entity
PATCH /rest/v1/uc/featurerules/c0d66244-016c-b869-ead9-50e54938780c HTTP/1.1
Content-Type: application/json; charset=utf-8
featurerule entity
Response
Field Description: featurerule entity
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "be95db11-0186-7a1b-9d21-7cd30a921f58",
"name": "num 14",
"enabled": true,
"filter_from": "14",
"filter_to": "*",
"priority": "115",
"types": [
"intercom",
"pickup",
"blf",
"blf_details"
],
"opts": {
"comment": "",
"tab": [],
"title": ""
},
"ext": {
"ct": "2023-02-22T17:11:15.487Z",
"lwt": "2023-02-22T17:11:28.983Z"
}
}