Request Parameters
Parameter
|
Description
|
Valid values
|
Note
|
Mandatory
|
id
|
Identifier of an administrator account which parameters will be changed
|
-
|
|
yes
|
login
|
Login
|
Digits, latin characters, and symbols ‘_’, ’-‘
|
|
no
|
password
|
Password
|
Digits, latin characters, and symbols ‘_’, ’-‘
|
|
no
|
name
|
Name
|
-
|
|
no
|
last-name
|
Surname
|
-
|
|
no
|
middle-name
|
Middle name
|
-
|
|
no
|
description
|
Description
|
-
|
|
no
|
readonly
|
A flag to restrict administrator account permissions
|
yes | no
|
If the box is checked and its value is set to 'yes', then a read-only account will be created (see Permissions). By default is no.
|
no
|
may-create-admin
|
A flag determines the right to create administrators and administrative groups
|
yes | no
|
By default is yes
|
no
|
delete-group
|
Identifier of a group to which an administrator access will be denied
|
-
|
The parameter can be defined in the request as many times as you like to specify multiple groups at a time
|
no
|
add-group
|
Identifier of a group which an administrator will access
|
-
|
The parameter can be defined in the request as many times as you like to specify multiple groups at a time
|
no
|
|
If the readonly=yes and may-create-admin=yes parameters are specified simultaneously, the readonly parameter has the priority. I.e. read-only administrator cannot add or change settings of other administrative accounts.
Administrator cannot change the may-create-admin, readonly and group parameters for own account.
|
Request Examples
http://192.168.1.1:9080/api/admins/change.ds?id=3&login=newadm3&password=root&name=name&last-name=last-name&middle-name=middle-name&description=description&add-group=1&readonly=yes&may-create-admin=no
Response Documents Structure
•XML response. •JSON response. XML Response Structure
<drweb-avdesk-api api_version="4.1.3" timestamp="1395657549" server="192.168.1.1" srv_version="10.01.0.201707130" status="true">
<administrator id="3"/>
</drweb-avdesk-api>
|
Description of XML Response Parameters
The <administrator /> element contains information about modified administrator account.
The <administrator/> element attributes:
Attribute
|
Description
|
id
|
Identifier of the created account
|
JSON Response Structure
{ "head": {
"status": true,
"timestamp": 1395657589,
"api": {
"version": 40103,
"build": "201403051"
},
"server": {
"name": "192.168.10.144",
"version": 1000201707130,
"uuid": "1023dcd7-d11d-b211-896d-8804c0842edb"
}
},
"id": "3"
}
|
Description of JSON Response Parameters
The data block contains information about the changed administrator account.
The data block elements:
Field name
|
Description
|
id
|
Identifier of changed administrator account
|
|