Skip to content
Suomi

Per element its installation task and, with the takt board, its installed, passed and defect days

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

Every element with an effective installation task, in columns, 2000 elements a page at most, in GlobalId order; only next_cursor = null ends the pages. Each page names only the tasks its elements use. 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
cursor
string
>= 1 characters <= 200 characters

The next_cursor of the previous page

limit
integer format: int64
default: 2000 >= 1 <= 2000

The facts

Media typeapplication/json

ScheduleElementFacts: per element its installation task and, with the takt switch, its installed, passed and defect days.

object
actual
required

The project has the takt switch, so the installed, passed and defect columns are filled.

boolean
tasks
required

The effective INSTALLATION tasks of the elements below.

Array<object>

ScheduleFactTask: one effective installation task.

object
id
required

The task.

string format: uuid
name
required

Its name.

string
work_name
required

Its work name.

string
start_date
required

Planned start, YYYY-MM-DD.

string
finish_date
required

Planned finish, YYYY-MM-DD.

string
source
required

ifc_properties, ifc_tasks or csv.

string
elements
required

Columnar: one position per element with an effective installation task, by GlobalId.

object
global_id
required

The elements.

Array<string>
task
required

Index into tasks.

Array<integer>
installed
required

Day of the live installed event, YYYY-MM-DD in Europe/Helsinki, or null.

Array<string | null>
passed
required

Day the first completed inspection finished, YYYY-MM-DD in Europe/Helsinki, or null.

Array<string | null>
defect
required

Day the element’s earliest defect began, YYYY-MM-DD in Europe/Helsinki, or null.

Array<string | null>
defect_until
required

Day the last of those defects closed, YYYY-MM-DD in Europe/Helsinki; null while one is open.

Array<string | null>
next_cursor
required

The after of the next page; null on the last page and always without limit and after.

string | null

Example generated

{
"actual": true,
"tasks": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"work_name": "example",
"start_date": "example",
"finish_date": "example",
"source": "example"
}
],
"elements": {
"global_id": [
"example"
],
"task": [
1
],
"installed": [
"example"
],
"passed": [
"example"
],
"defect": [
"example"
],
"defect_until": [
"example"
]
},
"next_cursor": "example"
}

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"
}