DELETE GeoFence/{id}
Delete a GeoFence based on it's id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Internal Id to the Geofence |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
GeoFenceRestResult| Name | Description | Type | Additional information |
|---|---|---|---|
| GeoFenceRestItems |
Collection of GeoFenceRestItem objects. |
Collection of GeoFenceRestItem |
None. |
| Errors | Collection of GeoFenceErrorItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"GeoFenceRestItems": [
{
"Groups": [
1,
2
],
"GeoJson": "sample string 1",
"Id": 2,
"Reference": "sample string 3",
"Latitude": 1.1,
"Longitude": 1.1,
"Radius": 1.1,
"Name": "sample string 4",
"Code": "sample string 5",
"Color": "sample string 6",
"IsPoP": true,
"IsPersonal": true,
"Created": "2025-10-27T05:39:40.6734163+01:00"
},
{
"Groups": [
1,
2
],
"GeoJson": "sample string 1",
"Id": 2,
"Reference": "sample string 3",
"Latitude": 1.1,
"Longitude": 1.1,
"Radius": 1.1,
"Name": "sample string 4",
"Code": "sample string 5",
"Color": "sample string 6",
"IsPoP": true,
"IsPersonal": true,
"Created": "2025-10-27T05:39:40.6734163+01:00"
}
],
"Errors": [
{
"Geofence": {
"Groups": [
1,
2
],
"GeoJson": "sample string 1",
"Id": 2,
"Reference": "sample string 3",
"Latitude": 1.1,
"Longitude": 1.1,
"Radius": 1.1,
"Name": "sample string 4",
"Code": "sample string 5",
"Color": "sample string 6",
"IsPoP": true,
"IsPersonal": true,
"Created": "2025-10-27T05:39:40.6734163+01:00"
},
"ErrorDescription": "sample string 1"
},
{
"Geofence": {
"Groups": [
1,
2
],
"GeoJson": "sample string 1",
"Id": 2,
"Reference": "sample string 3",
"Latitude": 1.1,
"Longitude": 1.1,
"Radius": 1.1,
"Name": "sample string 4",
"Code": "sample string 5",
"Color": "sample string 6",
"IsPoP": true,
"IsPersonal": true,
"Created": "2025-10-27T05:39:40.6734163+01:00"
},
"ErrorDescription": "sample string 1"
}
]
}
application/xml, text/xml
Sample:
<GeoFenceRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
<Errors>
<GeoFenceErrorItem>
<ErrorDescription>sample string 1</ErrorDescription>
<Geofence>
<Code>sample string 5</Code>
<Color>sample string 6</Color>
<Created>2025-10-27T05:39:40.6734163+01:00</Created>
<GeoJson>sample string 1</GeoJson>
<Groups xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:int>1</d5p1:int>
<d5p1:int>2</d5p1:int>
</Groups>
<Id>2</Id>
<IsPersonal>true</IsPersonal>
<IsPoP>true</IsPoP>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<Name>sample string 4</Name>
<Radius>1.1</Radius>
<Reference>sample string 3</Reference>
</Geofence>
</GeoFenceErrorItem>
<GeoFenceErrorItem>
<ErrorDescription>sample string 1</ErrorDescription>
<Geofence>
<Code>sample string 5</Code>
<Color>sample string 6</Color>
<Created>2025-10-27T05:39:40.6734163+01:00</Created>
<GeoJson>sample string 1</GeoJson>
<Groups xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:int>1</d5p1:int>
<d5p1:int>2</d5p1:int>
</Groups>
<Id>2</Id>
<IsPersonal>true</IsPersonal>
<IsPoP>true</IsPoP>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<Name>sample string 4</Name>
<Radius>1.1</Radius>
<Reference>sample string 3</Reference>
</Geofence>
</GeoFenceErrorItem>
</Errors>
<GeoFenceRestItems>
<GeoFenceRestItem>
<Code>sample string 5</Code>
<Color>sample string 6</Color>
<Created>2025-10-27T05:39:40.6734163+01:00</Created>
<GeoJson>sample string 1</GeoJson>
<Groups xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</Groups>
<Id>2</Id>
<IsPersonal>true</IsPersonal>
<IsPoP>true</IsPoP>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<Name>sample string 4</Name>
<Radius>1.1</Radius>
<Reference>sample string 3</Reference>
</GeoFenceRestItem>
<GeoFenceRestItem>
<Code>sample string 5</Code>
<Color>sample string 6</Color>
<Created>2025-10-27T05:39:40.6734163+01:00</Created>
<GeoJson>sample string 1</GeoJson>
<Groups xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</Groups>
<Id>2</Id>
<IsPersonal>true</IsPersonal>
<IsPoP>true</IsPoP>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<Name>sample string 4</Name>
<Radius>1.1</Radius>
<Reference>sample string 3</Reference>
</GeoFenceRestItem>
</GeoFenceRestItems>
</GeoFenceRestResult>