Request Parameters
Parameter
|
Description
|
Mandatory
|
id
|
Identifier of a group which parameters will be changed
|
yes
|
name
|
Group name
|
no
|
description
|
Group description
|
no
|
parent-group
|
Parent group identifierParent group ID. The parameter can contain an empty value to reset parent group (in this case, the group becomes a root group).
|
no
|
Request Example
http://192.168.1.1:9080/api/groups/change.ds?id=4&name=group4edit&parent-group=2&description=descr_new
Response Documents Structure
•XML response. •JSON response. XML Response Structure
<drweb-avdesk-api api_version="4.1.3" timestamp="1391503235" server="192.168.1.1" srv_version="10.01.0.201707130" status="true">
<group id="4"/></drweb-avdesk-api>
|
Description of XML Response Parameters
The <group /> element contains information about the changed group.
The <group /> element attributes:
Attribute
|
Description
|
id
|
Subscription group identifier
|
JSON Response Structure
{ "head": {
"status": true,
"timestamp": 1395734992,
"api": {
"version": 40103
},
"server": {
"name": "192.168.1.1",
"version": 1000201707130,
"uuid": "1023dcd7-d11d-b211-896d-8804c0842edb"
}
},
"data": {
"id": "4"
}
}
|
Description of JSON Response Parameters
The data block contains information on the changed group.
The data block elements:
Field name
|
Description
|
id
|
Identifier of changed group
|
|