Set geofence

Set a geofence for a device. Up to 99 geofences can be set for one device.

Note: PUT calls update data entirely. Any data not mentioned in the call, will be deleted.

Request
Security:
path Parameters
imei
required
string (IMEI)

The IMEI of the device. The IMEI number can be found on a sticker on the device itself or on the back of the device box.

Example: 357660101000198
Request Body schema: application/json
Array (<= 99 items)
lat
required
number (Latitude) [ -90 .. 90 ]

The GPS latitude.

lon
required
number (Longitude) [ -180 .. 180 ]

The GPS longitude.

radius
required
number

The radius of the geofence, in meters.

name
required
string

The name assigned to the geofence in the PUT /devices/{imei}/geofences call.

id
required
number (Geofence ID)

The ID of the relevant geoFence. Only applies when the event type is geoFence.

Responses
200

Successful operation

400

Bad request error

401

Unauthorized error

403

Forbidden error

404

Not found error

500

Internal server error

put/devices/{imei}/geofences
Request samples
application/json
[
  • {
    }
]
Response samples
application/json
{
  • "requestId": "df5fg-45fgfdsg-45fg-45454"
}