Skip to content

Decline a handover

POST
/v1/handovers/{id}/decline
curl --request POST \
--url https://beta-api.plune.ai/v1/handovers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/decline \
--cookie plune_session=<plune_session>

The member asked says no: the request becomes declined, nothing else changes, and the owner may ask again; both are told by mail. Anybody else, and a request no longer open, gets the 404 an id nobody has. Recorded in the project’s feed or the company’s log. The signed-in session alone: an API token gets 403 session_required — the owner holds the secrets, and a CI token neither asks for, answers nor reads a handover.

id
required
string format: uuid

The handover.id of the request, as the mail’s page names it

Declined

Media type application/json
object
handover
required

A handover of ownership (ADR 0050 §3): the owner asks one member to take the project or the company over; nothing changes until that member accepts. Seven days to answer, then expired.

object
id
required
string format: uuid
toUserId
required

The member asked, as GET /v1/members (or the company page) lists them

string
state
required
string
Allowed values: pending accepted declined cancelled expired
expiresAt
required
string format: date-time
Example
{
"handover": {
"id": "6f1c2b3a-0000-4000-8000-0000000000b9",
"toUserId": "6f1c2b3a-0000-4000-8000-0000000000a2",
"state": "declined",
"expiresAt": "2026-08-04T09:00:00.000Z"
}
}

No / invalid session

An API token

Media type application/json
object
error
required
string
Example
{
"error": "a handover takes the signed-in session — an API token neither asks for, answers nor reads one",
"code": "session_required"
}

Not a request to you, or no longer open

Media type application/json
object
error
required
string
Example
{
"error": "handover '6f1c2b3a-0000-4000-8000-0000000000b9' not found"
}

Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}
Retry-After
integer

Seconds until the window rolls over