DELETE Geofence API
Delete Geofence API allows you to delete already existing geofences for a project.
You can delete the geofence by two options below:
Query Parameters: This can accept only one geofence_id which can be deleted.
Body Parameters: If you want to delete more than one geofence, you can use the body parameters with upto 200 geofence_id at a time.
Delete Geofence API
DELETE
https://api.roam.ai/v1/api/geofence
Query Parameters
Name
Type
Description
geofence_id
string
Delete geofence for this id. E.g.- 5f73326ce5fc231ba4b253eb
Headers
Name
Type
Description
Api-key
string
Auth-key E.g.-33223kjhdcscijhb5sdbsdmjsdcbj5f
Request Body
Name
Type
Description
geofence_id
array
Array of geofence_id to be deleted.
E.g- ["5f73326ce5fc231ba4b253eb", "5f73326ce5fc231ba4b2534f"]
{
"status": true,
"msg": "Geofence deleted successfully.",
"code": 200,
"data": {}
}
Sample Request
Single Delete
curl --location --request DELETE 'https://api.roam.ai/v1/api/geofence/?geofence_id=5f73326ce5fc231ba4b253eb' \
--header 'Api-Key: e566c098cc6b441a9c3453b6fcf76e88' \
--header 'Content-Type: application/json'
Bulk Delete
curl --location --request DELETE '{{host}}/v3/api/geofence/' \
--header 'Api-key: xxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"geofence_id": ["615c6cef8ce7db3886f21550", "615c6ce351efb0120dcea364"]
}'
Last updated
Was this helpful?