Skip to content
Suomi

Accept a handover: the project moves to the integration's organisation

POST
/v1/handover-requests/{requestId}/accept
Code sample: Shell / cURL
curl --request POST \
--url https://api.whatsbuilt.fi/v1/handover-requests/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/accept \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "occurred_at": "2026-04-15T12:00:00Z" }'

Needs organisation:admin; an attesting operation, warned in the scope picker. The project, its members and records move; templates, check lists, fail-reason lists and documents are copied or moved. The request names the integration as the one who decided.

requestId
required
string format: uuid

Optional; an empty body accepts now

Media typeapplication/json

The body of acceptHandover.

object
occurred_at
string format: date-time

Example generated

{
"occurred_at": "2026-04-15T12:00:00Z"
}

The accepted handover

Media typeapplication/json

AcceptedHandoverRequest: the project now belongs to the principal’s organisation.

object
request_id
required
string format: uuid
project_id
required
string format: uuid
phase
required
string
Allowed values: fm_active
owner_account_id
required
string format: uuid
plan
required

What moved and what was copied: members, templates, check lists, fail-reason lists and documents

object
key
additional properties
One of:
number
occurred_at
required
string
entered_later
boolean

Example

{
"phase": "fm_active",
"entered_later": true
}

Invalid body, parameters or Idempotency-Key

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_ROLE when the integration is not an admin of its organisation; FEATURE_OFF when the organisation does not use handovers

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 pending request

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"
}

The request is no longer pending, or the project changed; HANDOVER_NAME_TAKEN

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"
}

IDEMPOTENCY_KEY_REUSED: the key was used with another body

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"
}