Move the project to another phase
curl --request POST \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/phase \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "phase": "construction", "occurred_at": "2026-04-15T12:00:00Z" }'Between construction and completed, either way. fm_active comes only from an accepted handover and cannot be left. Answers 409 PROJECT_PHASE_TRANSITION_INVALID for a move the project cannot make.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”The body of setProjectPhase.
object
A project phase.
When it happened; default now. An earlier time is recorded as entered later.
Responses
Section titled “Responses”The lifecycle after the change
Lifecycle: the phase and its history, newest first.
object
A project phase.
One phase change.
object
A project phase.
A project phase.
integration when an integration made the change, app for an app acting for a person, agent for an AI assistant
The integration or app that made the change
For app: the app’s registered name. Show the actor as {actor_name} · via {via_client_name}
Who handed the project over to whom.
object
integration or app when the request came through the API
For app: the app’s registered name
The acceptor is an integration
integration or app when the acceptance came through the API
For app: the app’s registered name
HandoverRequest as an object.
object
The project’s latest request that ended without acceptance.
object
A last handover status.
integration or app when the decision came through the API
For app: the app’s registered name
Example
{ "phase": "construction", "history": [ { "from_phase": "construction", "to_phase": "construction" } ], "pending_handover": { "entered_later": true }, "last_handover": { "status": "rejected" }}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
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"}PROJECT_PHASE_TRANSITION_INVALID
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"}