What a scope covers, without saving it
curl --request POST \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/inspection-plans/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ifc_type": [ "example" ], "storey_name": [ "example" ], "global_ids": [ "example" ], "assigned": true, "excluded": true, "plan_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'A sample of at most 20 elements and the counts by IFC type and storey.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”The body of previewInspectionPlan.
object
Resolve against this plan’s added and excluded elements
Responses
Section titled “Responses”The preview
InspectionPlanPreview: a scope resolved without saving it.
object
Live elements in scope.
At most 20 of them.
One element of a preview’s sample.
object
The element.
Its name, cut at 120 characters.
Its IFC class.
Its storey, cut at 120 characters.
At most 200 classes.
The elements in scope of one IFC class.
object
The IFC class.
Elements.
At most 200 storeys.
The elements in scope on one storey.
object
The storey; null for elements without one.
Elements.
With plan_id: the plan’s added elements.
With plan_id: elements the edited filter matches that the plan leaves out.
Example generated
{ "in_scope": 1, "sample": [ { "global_id": "example", "name": "example", "ifc_type": "example", "storey_name": "example" } ], "by_type": [ { "ifc_type": "example", "count": 1 } ], "by_storey": [ { "storey_name": "example", "count": 1 } ], "added": 1, "excluded": 1}Invalid body, parameters or Idempotency-Key
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 role the scopes give does not cover the write, or the project is not the integration’s; PUBLIC_API_DISABLED when the project’s owning organisation 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"}No such project or plan, or a draft plan and the role is not admin
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"}IDEMPOTENCY_KEY_REUSED: the key was used with another body
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"}