Skip to content
Suomi

The elements linked to a schedule task

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

Pages in GlobalId order; only next_cursor = null ends the list. An archived task answers 404. 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
taskId
required
string format: uuid

The schedule task’s id

cursor
string
>= 1 characters <= 200 characters

The next_cursor of the previous page

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

One page

Media typeapplication/json

ScheduleTaskElementsPage: one page of a task’s links.

object
data
required

The links, by GlobalId.

Array<object>

ScheduleTaskElement: one link of a task.

object
global_id
required

The element.

string
effective
required

True on the INSTALLATION link the installation readers take.

boolean
next_cursor
required

The GlobalId to pass as after, null on the last page.

string | null

Example generated

{
"data": [
{
"global_id": "example",
"effective": true
}
],
"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"
}

No such project or live schedule task

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