PUT api/v1/locations/{locationId}/devices/geofence

Update User's Geofence Area selection - includes Latitude, Longitude and Radius

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationId

Location ID

integer

Required

Body Parameters

GeofenceSettings

GeofenceSettings
NameDescriptionTypeAdditional information
GeofenceStatus

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Radius

decimal number

None.

GeofenceID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "GeofenceStatus": 1,
  "Latitude": 1.1,
  "Longitude": 1.1,
  "Radius": 1.1,
  "GeofenceID": "sample string 2"
}

application/xml, text/xml

Sample:
<GeofenceSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Domain">
  <GeofenceID>sample string 2</GeofenceID>
  <GeofenceStatus>1</GeofenceStatus>
  <Latitude>1.1</Latitude>
  <Longitude>1.1</Longitude>
  <Radius>1.1</Radius>
</GeofenceSettings>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResults

BaseResults
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultData

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "ResultData": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">
  <ResultCode>1</ResultCode>
  <ResultData>sample string 2</ResultData>
</BaseResults>