Skip to content
Suomi

The project's live storeys with their GlobalIds

GET
/v1/projects/{projectId}/storeys
Code sample: Shell / cURL
curl --request GET \
--url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/storeys \
--header 'Authorization: Bearer <token>'

Every storey (IfcBuildingStorey) of the project’s current models, by building and elevation. Find an element’s storey by its building_name and storey_name. Several models may each have a storey of the same name; any of them anchors a point, and the app uses the one with the most elements.

projectId
required
string format: uuid

The storeys

Media typeapplication/json

Storeys: the project’s live storeys.

object
data
required
Array<object>

Storey: a live storey of the project’s current models.

object
global_id
required

Send it as storey_global_id

string
name
required
string | null
long_name
required
string | null
building_name
required

Matches building_name on elements

string | null
elevation_m
required
number | null format: double
elements
required

Live elements whose storey_name is this storey’s name in the same model

integer format: int64

Example generated

{
"data": [
{
"global_id": "example",
"name": "example",
"long_name": "example",
"building_name": "example",
"elevation_m": 1,
"elements": 1
}
]
}

VALIDATION_ERROR for a malformed project id

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

Missing, malformed, expired or revoked token

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE when the project is not the integration’s; PUBLIC_API_DISABLED when the project’s owning organisation has turned the API off

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

RATE_LIMITED; wait for Retry-After seconds

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}