Deleting Administrator

Request Parameters

Parameter

Description

Note

login

Administrator account login

Required parameter: yes.

This parameter can be defined in the request several times to delete multiple administrators at a time.

 

Request Example

http://192.168.1.1:9080/api/admins/delete.ds?login=adm4&login=adm5

XML and JSON response structure examples are described below.

 

XML Response

<drweb-es-api api_version="4.3.0" timestamp="1395657955" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <administrators total="2">
     <administrator id="1000"/>

     <administrator id="1001"/>
  </administrators>
</drweb-es-api>

 

Description of XML Response Parameters

The <administrators /> element contains information about all deleted administrator accounts.

The <administrators /> element attribute:

Attribute

Description

total

Total number of deleted accounts

The <administrator /> element contains information about a specific deleted administrator account.

The <administrator /> element attribute:

Attribute

Description

id

Identifier of deleted account

 

JSON Response Structure

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

    "timestamp": 1558521970,

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

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

      "version": "12.00.0.201909260",
      "uuid": "27671337-e0b0-4f60-aeb0-ab1f2ca47f77"}},

"data": {
    "admins": {
      "total": 2,

      "list": [
          {"id": "1000"},
          {"id": "1001"}]}}}

 

Description of JSON Response Parameters

The admins block contains information about all deleted administrator accounts.

The admins block elements:

Field name

Description

total

Total number of deleted accounts

The list array contains information about specific deleted administrator account.

Elements in the list array:

Field name

Description

id

Identifier of deleted account