Skip to content
Suomi

The project's zones with their element counts

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

The live zones in the app’s natural order and the count of elements in no zone. listZones has the zones as a windowed list. A snapshot read when asked, not a windowed list: it has no changed_at and no deletions; read it again for the current state.

projectId
required
string format: uuid

The zone scheme

Media typeapplication/json

ZoneScheme: the project’s live zones and the elements in none.

object
keys
required

What divides the project into zones: today [{ "source": "storey_name" }]; null before the first model

Array<object> | null
object
key
additional properties
zones
required

The live zones in the app’s natural order

Array<object>

A live zone with its element count.

object
id
required
string format: uuid
label
required
string
element_count
required
integer format: int64
unzoned_count
required

Live elements in no zone

integer format: int64

Example generated

{
"keys": [
{
"additionalProperty": "example"
}
],
"zones": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"label": "example",
"element_count": 1
}
],
"unzoned_count": 1
}

VALIDATION_ERROR for a malformed id or parameter

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; FEATURE_OFF when the project’s organisation does not use the takt board (zones, handoffs, deviations) or the schedule (schedule tasks, element facts); PUBLIC_API_DISABLED when it 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"
}