Skip to main content
POST
Create space units
Send the building as the buildingId query parameter too. Use the same building as in the path.
Each space unit needs a name and a partOfId, the level or space it belongs to. The partOfId must be in this building. Names must be unique in the request. The response is 200. insertedIds maps the position of each space unit in your request, starting at 0, to the id of the new space unit.

Authorizations

Authorization
string
header
required

Paste an access token from Create an access token. Tokens expire, so request a new one if you receive 401.

Path Parameters

buildingId
string
required

Building identifier from List buildings.

Query Parameters

buildingId
string
required

Identifier of the building. Use the same building as in the path.

Pattern: \S

Body

application/json
spaceUnits
object[]
required

Space units to create. At least one. Names must be unique in the request.

Minimum array length: 1

Response

The space units were created.

insertedIds
object

Identifiers of the new spaces. Each key is the position of the item in your request, starting at 0.