Delete geofence

This API deletes a geofence from the system. When a geofence is deleted, all links between this geofence and vehicles are automatically removed.

How to get data

Method

GET

Request address

To get the data, use the address: https://<server_address>/api/api.php?

Request parameters

  • cmd=geofencedel — command to delete a geofence
  • zone_id — internal geofence identifier
  • external_id — external geofence identifier (optional)
  • node — node number where the command should be executed
 

Example request

https://<server_address>/api/api.php?cmd=geofencedel&zone_id=473989&node=1
Response
{
 "code": 0,
 "msg": "OK",
 "data": {
 "zones_deleted": [
 473989
 ]
 }
}
In response to the API request, the following is returned:
  • code — result code (0 = success)
  • message — server message indicating the result of the operation
  • data.zones_deleted — an array of IDs of deleted geofences (zone_id) for which the operation was completed successfully