Change Group Parameters

Request Parameters

Parameter

Description

Mandatory

description

Group description

no

id

ID of a group, parameters of which will be changed

yes

name

Group name

no

parent-group

Parent group ID

no

 

Request Example

https://192.168.1.1:9081/api/groups/change.ds?id=1001&name=group4edit&parent-group=2&description=descr_new

XML and JSON response structure examples are described below.

 

XML Response Structure

<drweb-es-api api_version="4.3.0" timestamp="1587994599" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <group id="1001"/>
</drweb-es-api>

 

Description of XML Response Parameters

The <group /> element contains ID of a group, parameters of which have been changed.

The <group /> element attribute:

Attribute

Description

id

Group ID

 

JSON Response Structure

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

    "timestamp": 1587994558,

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

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

      "version": "12.00.0.201909260",
      "uuid": "25cf53c0-885a-11ea-5c35-289def4dadcb"}},

"data": {
    "id": "1001"}}

 

Description of JSON Response Parameters

The data block contains ID of a group, parameters of which have been changed.

The data block elements:

Field name

Description

id

Group ID