Unlink geofence from object
This API removes the link between an existing geofence and a vehicle.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/api/api.php?
Request parameters
-
cmd=geofenceunlink — command to unlink a geofence
-
zone_id — geofence ID (required if external_id is not specified)
-
external_id — external identifier of the geofence (optional, ignored if zone_id is provided)
-
agent_id — identifier of the agent (vehicle)
-
node — node number where the command should be executed
Example request
http://<server_address>/api/api.php?cmd=geofenceunlink&zone_id=158414&agent_id=66497&node=1
|
Response
{
"code": 0,
"msg": "OK"
}
|
In response to the API request, the following is returned:
-
code — result code (0 = success)
-
msg — server message indicating the result of the operation