POST
/
floors
Create a new floor
curl --request POST \
  --url https://app.planpoint.io/api/floors \
  --header 'Authorization: <api-key>'
{
  "_id": "<string>",
  "project": "<string>",
  "units": [
    "objectId"
  ],
  "name": "<string>",
  "position": 123,
  "floorplanUrl": "<string>",
  "path": "<string>",
  "alternativePaths": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Query Parameters

project
string
required

Id of the floor's project

name
string

Name of the floor

position
number

Position or order of the floor

Response

Successful operation

_id
string<objectId>

Unique identifier for the floor

project
string<objectId>

Reference to the associated project

units
string<objectId>[]

Reference to associated units

name
string

Name of the floor

position
integer

Position or order of the floor

floorplanUrl
string<uri>

Floorplan image url

path
string

Floor drawing path

alternativePaths
string[]

Alternative paths for the floor