Change a plan, its scope, status or assignees
curl --request PATCH \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/inspection-plans/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "template_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "description": "example", "scope": { "ifc_type": [ "example" ], "storey_name": [ "example" ], "global_ids": [ "example" ], "assigned": true, "excluded": true }, "start_date": "2026-03-15", "due_date": "2026-03-15", "status": "draft", "assignee_ids": [ "example" ] }'Only the fields sent change; assignee_ids replaces the list. A completed plan is read-only until it is reopened; an archived plan stays read-only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”The body of updateInspectionPlan.
object
Only while the plan has no inspections (409 PLAN_TEMPLATE_LOCKED)
The filter keys replace the stored ones; assigned and excluded only as the plan has them
object
Example
2026-03-15Example
2026-03-15Draft → active, active → completed or archived, completed → active or archived
Responses
Section titled “Responses”The plan
A live inspection plan.
object
The plan.
The project.
Its template.
Its name.
Its description.
Keys AND together, values within a key OR; {} is the whole project. New keys may come.
object
IFC types.
Storey names.
GlobalIds.
The plan also covers its added elements (listInspectionPlanElements, kind added)
The plan leaves out its excluded elements
YYYY-MM-DD
YYYY-MM-DD
Draft, active, completed or archived; new statuses may come
Who created it.
When it was created.
When it was changed last.
Its assignees.
An assignee of a plan.
object
The user.
Their name.
The first assignee gets the findings of failed steps
The row’s change time.
Example
{ "scope": { "assigned": true, "excluded": true }, "status": "draft", "deleted": false}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"}PLAN_TEMPLATE_LOCKED
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"}