Skip to main content

Retrieving all Polyfences (GET)

https://core.rock7.com/API3/Polyfence/All

This request will return all Polyfences in your account.

Example with Parameters

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

Response

{
"polyfences": [
{
"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
},
{
"polyfences": [
{
"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
},
{
"created": "2024-04-02T11:21:27.000Z",
"geofences": [
{
"geofence": {
"name": "Roath_REC",
"definition": "51.49877801240812,-3.165126215280518,51.49721637260556,-3.166767332333311,51.49631392902094,-3.1647682326362103,51.49792976687202,-3.1631655204906317",
"id": "orLzVjdQqPgkaElklmWpRyKbJZONAGYD",
"type": "geofence"
},
"behaviour": "IN_OFF"
}
],
"name": "REPLACE\nRoath_REC :: NORMAL (IN_OFF)\n",
"id": "XgwyNPpDmebJLWXzLABoARqxMdZOVGva",
"type": "polyfence",
"locked": false
},
{
"created": "2023-01-13T10:31:04.000Z",
"geofences": [
{
"geofence": {
"name": "Poly Test Jan 23 - Crwys Medical",
"definition": "51.5048893058514,-3.184865069487699,51.50450865022742,-3.181989741423734,51.50342009115766,-3.1822257758170447,51.503573693092946,-3.18509037504495",
"id": "jvzwyOMVbPZgeWPdaaWaYqQDAJGxkKLr",
"type": "geofence"
},
"behaviour": "IN_OFF"
},
{
"geofence": {
"name": "Poly Test Jan 23 - Tyndall Street",
"definition": "51.47761772391244,-3.1664370394213703,51.476421605705006,-3.165546546028426,51.47501161603089,-3.1700526571734455,51.476301323926144,-3.1710504389269856",
"id": "KbONwVrMLJxkeBGLPonPDyqjAvGQXzoZ",
"type": "geofence"
},
"behaviour": "IN_OUT"
}
],
"name": "REPLACE\nPoly Test Jan 23 - Tyndall Street :: NORMAL (IN_OUT)\n, Poly Test Jan 23 - Crwys Medical :: NORMAL (IN_OFF)\n",
"id": "mRbxMoAQkLdKJWkjKZnqYZpaOgjPwlyN",
"type": "polyfence",
"locked": false
}
]
}