Change Group Parameters

Request Parameters

Parameter

Description

Obligatory

description

Group description

no

id

Identifier of a group which parameters will be changed

yes

name

Group name

no

parent-group

Parent group identifier

no

 

Request Example

http://192.168.1.1:9080/api/groups/change.ds?id=4&name=group4edit&parent-group=2&description=descr_new

XML and JSON response structure examples are described below.

 

XML Response

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

 

Description of XML Response Parameters

The <group /> element contains information about the changed group.

The <group /> element attribute:

Attribute

Description

id

Group identifier

 

JSON Response Structure

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

    "timestamp": 1555734992,

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

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

      "version": "12.00.0.201909260",
      "uuid": "1023dcd7-d11d-b211-896d-8804c0842edb"}},

"data": {
    "id": "4"}}

 

Description of JSON Response Parameters

The data block contains information on the changed group.

The data block elements:

Field name

Description

id

Identifier of changed group