Delete a Station

Request Parameter

Parameter

Description

Mandatory

id

Station ID.

The parameter can be defined in the request as many times as you like to delete multiple stations at a time.

yes

 

Request Example

https://192.168.1.1:9081/api/stations/delete.ds?id=1000&id=1001

XML and JSON response structure examples are described below.

 

XML Response Structure

<drweb-es-api api_version="4.3.0" timestamp="1582030261" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">

  <stations total="2">
     <station id="1000"/>

     <station id="1001"/>
  </stations>
</drweb-es-api>

 

Description of XML Response Parameters

The <stations /> element contains information about deleted stations specified in the request.

The <stations /> element attribute:

Attribute

Description

total

Total number of stations in a response

The <station /> element contains ID of a specific deleted station.

The <station /> element attribute:

Attribute

Description

id

Station ID

 

JSON Response Structure

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

    "timestamp": 1582030519,

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

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

      "version": "12.00.0.201909260",
      "uuid": "eae1a652-96d5-48fd-9169-4788a03688b8"}},

"data": {
    "stations": {
      "total": 2,

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

 

Description of JSON Response Parameters

The stations block contains information about deleted stations specified in the request.

The stations block elements:

Field name

Description

total

Total number of stations in a response

list

Array of deleted station IDs

Elements in the list array:

Field name

Description

id

Station ID