Guides

Find or Create Space

Finds or create a space if not found. This API can automatically find deeply nested Space and/or create the path as required.

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



Language
Credentials
Header
Click Try It! to start a request and see the response here!