Change Administrator Privileges

Request Parameters

Parameter

Description

Mandatory

allow-right

Code of administrator privilege to be granted (see Appendix A2. Administrator Privileges).

This parameter can be repeated any number of times per request to grant multiple privileges at a time.

no

deny-right

Code of administrator privilege to be forbidden (see Appendix A2. Administrator Privileges).

This parameter can be repeated any number of times per request to take away multiple privileges at a time.

no

id

ID of an administrator account, privileges of which will be changed

yes

 

Request Example

https://192.168.1.1:9081/api/admins/set-rights.ds?id=d65565c0-78c6-11ea-4447-543e670bf419&deny-right=11

XML and JSON response structure examples are described below.

 

XML Response Structure

<drweb-es-api api_version="4.3.0" timestamp="1586266734" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <administrator id="d65565c0-78c6-11ea-4447-543e670bf419"/>
</drweb-es-api>

 

Description of XML Response Parameters

The <administrator /> element contains an ID of modified administrator account.

The <administrator /> element attribute:

Attribute

Description

id

Account ID

 

JSON Response Structure

{ "head": {
    "status": true,

    "timestamp": 1586266846,

    "api": {
      "version": 40300,
      "versionString": 4.3.0},

    "server": {
      "name": "192.168.1.1",

      "version": "12.00.0.201909260",
      "uuid": "849dd390-6cf3-11ea-5d22-380c8b3728d7"}},

"data": {
    "id": "d65565c0-78c6-11ea-4447-543e670bf419"}}

 

Description of JSON Response Parameters

The data block contains an ID of modified administrator account.

The data block element:

Field name

Description

id

Account ID