POST Account/AddGeoFence/{id}

Add a new Geo-Fence to an account.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

VehicleID

string

Required

Body Parameters

A JSON Request containing Geo-Fence information

GeoFenceParams
NameDescriptionTypeAdditional information
GeoFenceName

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Radius

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "GeoFenceName": "sample string 1",
  "Latitude": 2.1,
  "Longitude": 3.1,
  "Radius": 4
}

application/xml, text/xml

Sample:
<GeoFenceParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CreatorsAPI.Models">
  <GeoFenceName>sample string 1</GeoFenceName>
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
  <Radius>4</Radius>
</GeoFenceParams>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GeoFenceParams'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.