Change Privileges of a Group Administrator

Request Parameters

Parameter

Description

Mandatory

add-group

ID of a group the privileges will be granted to

no

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

delete-group

ID of a group the privileges will be taken away from

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-group-rights.ds?id=d65565c0-78c6-11ea-4447-543e670bf419&allow-right=12&add-group=qqq

XML and JSON response structure examples are described below.

 

XML Response Structure

<drweb-es-api api_version="4.3.0" timestamp="1586267262" server="192.168.1.1" srv_version="13.00.0.202005090" 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": 1586267374,

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

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

      "version": "13.00.0.202005090",
      "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