Skip to content

Transfer ownership

POST
/v1/memberships/:id/transfer_ownership
curl -X POST "https://api.summerbase.com/v1/memberships/:id/transfer_ownership" \
-H "Authorization: Bearer sb_..."

Make this member the organization’s owner, and step down to admin in the same act.

One owner at a time, always: there is no moment at which the organization has two owners or none.

id
required
string format: uuid

Example

0198f1a2-6c40-7a9e-8d1b-3f5e7c9a2b64
expand[]
Array<string>
<= 10 items
Allowed values: organization user

Relationships to include in the response instead of fetching separately. A dotted path expands what an expanded record can expand in turn — at most 4 deep, 10 paths a request, and never back to a record already on the path.

Media typeapplication/json
object

Example generated

{}

Returns the membership object.

Media typeapplication/json

Example

{
"created_at": "2025-09-08T14:02:37Z",
"id": "0198f1a2-6c40-7a9e-8d1b-3f5e7c9a2b64",
"object": "membership",
"organization_id": "0198f1a2-6c3d-7e41-9a2b-5c8d1e4f7a90",
"role": "admin",
"user_id": "0198f1a2-6b10-7d2a-b4c5-9e8f7a6b5c41"
}