Skip to content

Get the pending ownership offer

GET
/api/v1/team/ownership-offer
curl --request GET \
--url https://api.deploybase.eu/api/v1/api/v1/team/ownership-offer \
--header 'Authorization: <Authorization>'

Returns the active team’s pending ownership offer, or null. Any member may read it; is_recipient tells the caller whether it was made to them. An offer read past its expiry is recorded as expired and not returned.

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
offer
object
created_at
string
expires_at
string
from_membership_id

FromMembershipID is the owner who made the offer; null when they have since left.

string
id
string
is_recipient

IsRecipient is true when the caller is the person the offer was made to.

boolean
to_membership_id
string

Example generated

{
"data": {
"offer": {
"created_at": "example",
"expires_at": "example",
"from_membership_id": "example",
"id": "example",
"is_recipient": true,
"to_membership_id": "example"
}
},
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Unauthorized

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Forbidden

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Live f79d25b6 built