Skip to content
Suomi

A zone's tasks with their handoff states, the latest handoffs and their defects

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

The zone’s installation tasks, optionally of one task or one work name, as the app’s handoff panel shows them. may_record_done and may_receive say what the principal’s project role allows. 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
zoneId
required
string format: uuid

The zone’s id

task_id
string format: uuid

One task of the zone

work_name
string
>= 1 characters <= 255 characters

The tasks of one work name, a takt board row

The zone’s handoffs

Media typeapplication/json

GET …/handoffs/{zoneId}: the cell’s tasks and states, its history, its defects and up to 200 of its elements.

object
zone
required

The zone of a cell.

object
id
required
string format: uuid
label
required
string
work_name
required
string | null
approval
required

The project asks for an approval after a receive

boolean
may_record_done
required
boolean
may_receive
required
boolean
tasks
required
Array<object>

A task of a cell with its handoff state.

object
name
required
string
state
required
One of:

A handoff transition.

string
Allowed values: done received returned approved reopened
total
required
integer format: int64
task_id
required
string format: uuid
installed
required
integer format: int64
work_name
required
string
start_date
required
string
finish_date
required
string
last_event_id
required
string | null format: uuid
done_by
required
One of:

An organisation a task or a defect is put on.

object
account_id
required
string | null
name
required
string
events
required

The latest 100 handoffs, oldest first

Array<object>

One handoff event.

object
id
required
string format: uuid
task_id
required
string format: uuid
task_name
required
string
kind
required

New kinds may come

string
Allowed values: done received returned approved reopened
occurred_at
required
string
recorded_at
required
string
entered_later
required
boolean
actor_name
required
string | null
account_id
required
string | null
account_name
required
string
created_via
required

Null for a person in the app; agent, integration or app otherwise. New values may come.

string | null
via_client_id
required

The integration’s id or the app’s client id when created_via is integration or app

string | null
via_client_name
required

The registered name of the app when created_via is app; the app shows it as {person} · sovelluksella {app}

string | null
note
required
string | null
defects
required
Array<object>

A defect of a handoff with its finding.

object
finding_id
required

The finding’s guid

string format: uuid
number
required
string | null
title
required
string
status
required
string | null
open
required
boolean
blocking
required
boolean
handoff_event_id
required
string format: uuid
task_id
required
string format: uuid
global_ids
required
Array<string>
responsible
required
One of:

An organisation a task or a defect is put on.

object
account_id
required
string | null
name
required
string
elements
required

At most 200 elements of the cell, by name; listZoneElements and listScheduleTaskElements have them all

Array<object>

An element of a cell.

object
name
required
string | null
global_id
required
string

Example

{
"tasks": [
{
"state": "done"
}
],
"events": [
{
"kind": "done"
}
]
}

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, zone or 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"
}