Failed checks, findings, returns and late installs of a date range, grouped or listed
curl --request GET \ --url 'https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/deviations?by=zone' \ --header 'Authorization: Bearer <token>'Totals of the range and one page of groups, or with by=deviation one page of the deviations themselves; only next_cursor = null ends the pages. A snapshot read when asked, not a windowed list: it has no changed_at and no deletions; read it again for the current state.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”First day, YYYY-MM-DD in Finnish time; 29 days before to by default
Last day, YYYY-MM-DD in Finnish time; today by default
Group by zone, organisation or element, or list each deviation
The next_cursor of the previous page
Responses
Section titled “Responses”One page of the report
DeviationReportPage: the range’s totals and one page of groups or deviations.
object
What a deviation report groups by.
The five counts of a report or group.
object
Every deviation.
Failed checks.
Findings.
Zones returned.
Late installs.
With by zone, organisation or element
One group of a report page.
object
The zone id, organisation id or GlobalId; null for deviations with none
With by deviation
One deviation.
object
What kind of deviation a row is; new kinds may come.
The organisation responsible for the work
Example
{ "by": "zone", "rows": [ { "kind": "failed_check" } ]}VALIDATION_ERROR for a malformed id or parameter
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
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
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}