Skip to main content

Retrieving a specific Polyfence (GET)

https://core.rock7.com/API3/Polyfence/{polyfence_id}/Get

This request will return a specific Polyfence.

ParameterTypeDescriptionExample/Possible Values
PATH PARAMS
polyfence_idstringrequired
Polyfence identifier
LpwjgJyDQqreRkExXlEAGYmVlazNdOMX

Example with Parameters

curl --request GET \
--url 'https://core.rock7.com/API3/Polyfence/LpwjgJyDQqreRkExXlEAGYmVlazNdOMX/Get?username=myUsername&password=myPassword' \
--header 'accept: application/json'

Response

{
"polyfence": {
"created": "2024-07-12T16:14:22.000Z",
"geofences": [
{
"geofence": {
"name": "bermuda_triangle",
"definition": "25.41,-80.23,32.38,-64.67,18.38,-65.63",
"id": "JYXyvGekqxMKABvYGyEzbRDgVQZOwmdp",
"type": "geofence"
},
"behaviour": "IN"
}
],
"name": "Polyfence XYZ",
"id": "OVdRorbmlwqkNBpaZynJYPZvxaXpzjLg",
"type": "polyfence",
"locked": true
}
}