General domain settings (settings)
Table of Contents
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
Getting a list of settings
Request
Name | Type | Description |
---|---|---|
|
|
Filter by field values. |
|
|
List of fields to output. Available fields for output: key. |
|
|
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. |
Request example
GET /rest/v1/domain/settings?offset=0&limit=2 HTTP/1.1
Response
Field Description: setting entity
Response example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"key": "alertcall_defaults",
"value": {
"attemptcount": 1,
"attempttimeoutsec": 10,
"callerid": "100",
"callername": "AlertMachine",
"calltimeout": 30,
"trunkcount": 1
}
}
]
Retrieving setup data
Request
Name | Type | Description |
---|---|---|
|
|
A list of fields to output. |
|
|
Conversion to flat form of composite fields. |
Request example
GET /rest/v1/domain/settings/licowned HTTP/1.1
Response
Field Description: setting entity
Response example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"key": "licowned",
"value": {
"devices": 100,
"domains": 20,
"ivrscripts": 10,
"sipqueue": 0,
"siptrunks": 200,
"solution_era": 20,
"svcscripts": 10,
"userqueue": 0,
"webservice_public": 5,
"webservice_subscr": 1
}
}
Changing the setting data
Fields prohibited for modification: key
Request
Field Description: setting entity
Request example
PATCH /rest/v1/domain/settings/licowned HTTP/1.1
Content-Type: application/json; charset=utf-8
setting entity
Response
Field Description: setting entity
Response example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"key": "licowned",
"value": {
"devices": 120,
"domains": 20,
"ivrscripts": 10,
"sipqueue": 0,
"siptrunks": 200,
"solution_era": 20,
"svcscripts": 10,
"userqueue": 0,
"webservice_public": 5,
"webservice_subscr": 1
}
}