Access
Preview

Offer the organization to a member

The offer waits seven days for the member's answer; one offer waits per organization. The Owner confirms by

POST
/organization/ownership-transfers
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

application/json
  1. body
toUserId*string
Length1 <= length
confirmName*string

The organization's name, typed to confirm.

Response Body

The offer.

application/json
  1. response
id*string
Formatuuid
fromUserId*string
fromName*string
toUserId*string
toName*string
createdAt*string
Formatdate-time
expiresAt*string
Formatdate-time
Example Request
curl -X POST 'https://wardn.example.com/api/v1/organization/ownership-transfers' \  -H 'Content-Type: application/json' \  -d '{  "toUserId": "string",  "confirmName": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "fromUserId": "string",  "fromName": "string",  "toUserId": "string",  "toName": "string",  "createdAt": "2019-08-24T14:15:22Z",  "expiresAt": "2019-08-24T14:15:22Z"}