PUT api/Zone/{id}

Update Zone at index id with parameter Zone

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Index of the Zone

string

Required

Body Parameters

Zone
NameDescriptionTypeAdditional information
corners

Corners of the Zone

Collection of Location

None.

id

Id of the Zone

string

None.

name

Name of the Zone

string

None.

type

Type of the Zone

string

None.

displayType

Display Type of the Zone

string

None.

openOrClosed

Whether the Zone is Open or Close

boolean

None.

assetsAndGroup

Assets and Group associated with the Zone

Collection of Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "corners": [
    {
      "currentLat": 1.1,
      "currentLon": 1.1,
      "lastLat": 1.1,
      "lastLon": 1.1,
      "finalLat": 1.1,
      "finalLon": 1.1,
      "time": "2024-05-19T01:06:35.6556854+00:00",
      "altitude": 1.1
    },
    {
      "currentLat": 1.1,
      "currentLon": 1.1,
      "lastLat": 1.1,
      "lastLon": 1.1,
      "finalLat": 1.1,
      "finalLon": 1.1,
      "time": "2024-05-19T01:06:35.6556854+00:00",
      "altitude": 1.1
    }
  ],
  "id": "sample string 1",
  "name": "sample string 2",
  "type": "sample string 3",
  "displayType": "sample string 4",
  "openOrClosed": true,
  "assetsAndGroup": [
    [
      1,
      2
    ],
    [
      1,
      2
    ]
  ]
}

application/xml, text/xml

Sample:
<Zone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAVRADServer.Models">
  <ID>sample string 1</ID>
  <assetsAndGroup xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:ArrayOfint>
      <d2p1:int>1</d2p1:int>
      <d2p1:int>2</d2p1:int>
    </d2p1:ArrayOfint>
    <d2p1:ArrayOfint>
      <d2p1:int>1</d2p1:int>
      <d2p1:int>2</d2p1:int>
    </d2p1:ArrayOfint>
  </assetsAndGroup>
  <corners>
    <Location>
      <altitude>1.1</altitude>
      <currentLat>1.1</currentLat>
      <currentLon>1.1</currentLon>
      <finalLat>1.1</finalLat>
      <finalLon>1.1</finalLon>
      <lastLat>1.1</lastLat>
      <lastLon>1.1</lastLon>
      <time>2024-05-19T01:06:35.6556854+00:00</time>
    </Location>
    <Location>
      <altitude>1.1</altitude>
      <currentLat>1.1</currentLat>
      <currentLon>1.1</currentLon>
      <finalLat>1.1</finalLat>
      <finalLon>1.1</finalLon>
      <lastLat>1.1</lastLat>
      <lastLon>1.1</lastLon>
      <time>2024-05-19T01:06:35.6556854+00:00</time>
    </Location>
  </corners>
  <displayType>sample string 4</displayType>
  <name>sample string 2</name>
  <openOrClosed>true</openOrClosed>
  <type>sample string 3</type>
</Zone>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.