get
https://hub.xyte.io/core/v1/organization/spaces
Retrieve Information about your organization's spaces.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Authorization
This endpoint requires Authorization.
Maintenance filters
Both are optional and combine with the other query parameters.
| Parameter | Type | Description |
|---|---|---|
| maintenance_scheduled_active | Boolean | true: only spaces a scheduled maintenance window covers now; false: only the others. |
| has_maintenance_schedules | Boolean | true: only spaces with an enabled maintenance schedule set on them or on an ancestor; false: only the others. |
Response
Returns Paginated data of the following format for each item:
| Key | Subkey | Type | Description |
|---|---|---|---|
| id | Integer | Unique identifier for the space. | |
| name | String | Name of the space. | |
| parent_id | Integer | Unique identifier for the parent space. | |
| path | string | Full slash (/) delimited path of the space in the tree. | |
| space_type | string | root / room / customer | |
| created_at | Datetime | Creation timestamp | |
| config | Object | Configuration settings for the space. | |
| img | String | URL of an image associated with the space. | |
| location | Object | Location information for the space. See Location table. | |
| priority_factor | Integer | Priority factor for events related to the space.-1: High Priority, 0: No Change, 1: Low Priority | |
| inherit_location | Boolean | Flag indicating whether location should be inherited from the parent space. | |
| temperature_units | String | Units for temperature measurement. Celsius, Fahrenheit | |
| inherit_priority_factor | Boolean | Flag indicating whether priority factor should be inherited from the parent space. | |
| inherit_temperature_units | Boolean | Flag indicating whether temperature units should be inherited from the parent space. | |
| room_status | String | Room status the portal Rooms list shows. See Room status. | |
| room_status_updated_at | Datetime | When the room status last changed. See Room status. | |
| is_vip | Boolean | The room is marked VIP. | |
| maintenance | Object | Whether the space is in maintenance, manual or scheduled. See Maintenance table. |
Maintenance
Every Spaces endpoint that returns a space (Get Spaces, Get Space, Create Space, Find or Create Space and Update Space) includes this maintenance object.
| Key | Subkey | Type | Description |
|---|---|---|---|
| manual | Object | Manual maintenance, set with Set Maintenance. | |
| active | Boolean | The space is in manual maintenance. | |
| inherited | Boolean | The manual maintenance comes from an ancestor rather than this space itself. | |
| scheduled | Object | Scheduled maintenance, set with Maintenance Schedules. A window does not change the room status by itself, but a room whose device has an open incident hidden by a window shows Maintenance rather than Error, unless another device in it is in error. | |
| active | Boolean | A scheduled maintenance window covers the space now. | |
| until | Datetime | When the covering window ends (UTC); null when none is active. | |
| next_start_at | Datetime | The next window start after now (UTC); null when none starts within 7 days. | |
| next_end_at | Datetime | End of that next window (UTC); null when none starts within 7 days. | |
| has_schedules | Boolean | Enabled schedules are set on this space. | |
| inherits_schedules | Boolean | An enabled schedule on an ancestor applies to this space. |
Location
| Key | Subkey | Type | Description |
|---|---|---|---|
| location | Object | Geospatial coordinates of the space. | |
| lat | Float | Latitude coordinate of the space. | |
| lng | Float | Longitude coordinate of the space. | |
| utc_offset | Integer | UTC offset in minutes. | |
| description | String | Description of the location. | |
| region_name | String | IANA Time Zone database region name. |
Room status
Every space also returns:
room_status: the room status the portal Rooms list shows. One ofno_devices(Empty),maintenance_mode(Maintenance),error(Error),warning(Warning),unknown(Unknown) orhealthy(Healthy).room_status_updated_at: when the room status last changed. It can also change when the status of the room's devices changes butroom_statusstays the same.is_vip:truewhen the room is marked VIP.
For a space with child spaces, room_status is null, is_vip is normally false and room_status_updated_at is normally null. Unsorted and Unprovisioned spaces are not rooms in the portal. Their room_status may be null or a status the Rooms list doesn't show.
Room status filter
room_status: optional query parameter. Returns only spaces with that room status. The value is not case-sensitive (Errorworks likeerror). An emptyroom_status=applies no filter. The filter also returns Unsorted and Unprovisioned spaces that carry that status.- Any other value returns 400
{ "error": "room_status must be one of the following: no_devices / maintenance_mode / error / warning / unknown / healthy" }.
