Access
Preview

Choose who may hand a personal workspace to someone else

`owner`: only its Owner. `named`: its Owner and the people in the workspace named here. Only a personal workspace has one (409 `organization.not_personal` otherwise).

PUT
/organization/transfer-policy
cookiebetter-auth.session_token<token>

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

application/json
  1. body
by*string
Value in"owner""named"
userIds?array<string>

The people in the workspace who may offer it, when by is named.

Itemsitems <= 50

Response Body

The policy as it is now.

application/json
  1. response
personal*boolean
by*string
Value in"owner""named"
userIds*array<string>
Example Request
curl -X PUT 'https://wardn.example.com/api/v1/organization/transfer-policy' \  -H 'Content-Type: application/json' \  -d '{  "by": "owner"}'
Example Response
{  "personal": true,  "by": "owner",  "userIds": [    "string"  ]}