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

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
levels
object[]
required

Levels to create. At least one. Names must be unique in the request and in the building.

Minimum array length: 1

Response

The levels were created.

insertedIds
object

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