Zones are used to split your location into specific areas. If you use the Desks and Spaces add-on, you can also create bookable workspaces within each zone. Use the API to retrieve a list of all zones, add new zones, update or delete existing zones, and link zones to access points.
Learn more about zones in the OnLocation Help Center.
Returns a list of all zones
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 zones
Resource not found
Internal server error
curl -i -X GET \ 'https://api.whosonlocation.com/v1/zone?q=string'
[- {
- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "location_id": 15,
- "zone_group_id": 3,
- "name": "Meeting room 1",
- "reference": "Large meeting room - seats 20",
- "status": "Active",
- "maximum_occupancy": 50,
- "spaces_enabled": true,
- "spaces": 11,
- "spaces_title": "Spaces Reference",
- "zone_group_name": "Floor 1",
- "zone_fullname": "Floor 1 - Meeting room 1"
}
]
Creates a new zone that can be assigned to a location.
Information to use when creating a new zone record.
Zone created
Access denied to this resource
Internal server error
{- "name": "Meeting room 1",
- "location_id": 15,
- "reference": "Large meeting room - seats 20",
- "maximum_occupancy": 50,
- "spaces_enabled": true,
- "spaces": 11,
- "spaces_title": "Spaces Reference"
}
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "location_id": 15,
- "zone_group_id": 3,
- "name": "Meeting room 1",
- "reference": "Large meeting room - seats 20",
- "status": "Active",
- "maximum_occupancy": 50,
- "spaces_enabled": true,
- "spaces": 11,
- "spaces_title": "Spaces Reference",
- "zone_group_name": "Floor 1",
- "zone_fullname": "Floor 1 - Meeting room 1"
}
Retrieves a single zone, filtering with the provided ID.
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/zone/:id
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "location_id": 15,
- "zone_group_id": 3,
- "name": "Meeting room 1",
- "reference": "Large meeting room - seats 20",
- "status": "Active",
- "maximum_occupancy": 50,
- "spaces_enabled": true,
- "spaces": 11,
- "spaces_title": "Spaces Reference",
- "zone_group_name": "Floor 1",
- "zone_fullname": "Floor 1 - Meeting room 1"
}
Updates the details of a zone.
Information used to create the zone record
Updated resource
Access denied to this resource
Internal server error
{- "name": "Meeting room 1",
- "location_id": 15,
- "reference": "Large meeting room - seats 20",
- "maximum_occupancy": 50,
- "spaces_enabled": true,
- "spaces": 11,
- "spaces_title": "Spaces Reference"
}
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "location_id": 15,
- "zone_group_id": 3,
- "name": "Meeting room 1",
- "reference": "Large meeting room - seats 20",
- "status": "Active",
- "maximum_occupancy": 50,
- "spaces_enabled": true,
- "spaces": 11,
- "spaces_title": "Spaces Reference",
- "zone_group_name": "Floor 1",
- "zone_fullname": "Floor 1 - Meeting room 1"
}
Links a zone to an access point. Access points are places in your location that people use to sign in or out.
Updated resource
Access denied to this resource
Internal server error
curl -i -X PUT \ https://api.whosonlocation.com/v1/zone/:zoneId/link/:accessPointId
Removes the link between a zone and an access point.
Updated resource
Access denied to this resource
Internal server error
curl -i -X PUT \ https://api.whosonlocation.com/v1/zone/:zoneId/unlink/:accessPointId