Find or Create Space

Find an existing space matching the given name and parent_id, or create it if not found.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

This API can be used to quickly find a location of a deeply nested Space or create it.

For example using this API for a name Building A/Floor 2/Room 223 under the Space specified by parent_id will:

  1. Search for Building A under parent_id and create it, if it does not exist.
  2. Search for Floor 2 under Building A and create it, it it does not exist.
  3. Search for Room 223 under Floor 2 and create it, it it does not exist.
  4. Return the entity data for Room 223

Authorization

This endpoint requires Authorization.

Request

KeyTypeDescriptionRequired
namestringSpace path name delimited by the "/" character.Yes
parent_idstringParent space ID, defaults to Root space IDNo
configstringConfigurationNo

Response

Some fields in the config field will only be returned if they are defined for the space.

KeyTypeDescription
idStringSpace ID
nameStringSpace Name
parent_idStringID of the space's parent
configobject
priority_factorStringIncident priority modifier: "-1", "0" or "1"
temperature_unitsStringTemperature units: "celsius" or "fahrenheit"
imgStringSpace image url
locationObjectLocation object
inherit_locationBooleanInherit location from parent space
inherit_priority_factorBooleanInherit priority_factor from parent space
inherit_temperature_unitsBooleanInherit temperature_units from parent space
room_statusStringRoom status the portal Rooms list shows. null for a space with child spaces. See Get Spaces.
room_status_updated_atDatetimeWhen the room status last changed
is_vipBooleanThe room is marked VIP



Body Params
int32
Defaults to null

Location of the space, if not specified will be under root

string
required

Space name

config
object

Space configuration

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json