Zone groups are used to group your location's zones together. For example, a zone group may be a building and each floor is a zone. Use the API to retrieve a list of all zone groups, add new zone groups, and update or delete existing zone groups.
Learn more about zone groups in the OnLocation Help Center.
Returns a list of all zone groups.
A comma separated list of tag:value search parameters, a colon separator performs an exact match, a percent separator performs a starts-with search and greater/less than search number/date ranges.
List of zone groups
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/zonegroup
[- {
- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modifed": "2021-12-31T14:35:28+13:00",
- "org_id": 81,
- "location_id": 22,
- "name": "Main Building"
}
]
Creates a new zone group.
Certification created
Access denied to this resource
Internal server error
{- "name": "Main Building",
- "location_id": 22
}
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modifed": "2021-12-31T14:35:28+13:00",
- "org_id": 81,
- "location_id": 22,
- "name": "Main Building"
}
Retrieves a single zone group, filtering with the provided ID.
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/zonegroup/:id
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modifed": "2021-12-31T14:35:28+13:00",
- "org_id": 81,
- "location_id": 22,
- "name": "Main Building"
}
Updates the details of a zone group.
Updated resource
Access denied to this resource
Internal server error
{- "name": "Main Building",
- "location_id": 22
}
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modifed": "2021-12-31T14:35:28+13:00",
- "org_id": 81,
- "location_id": 22,
- "name": "Main Building"
}