Access
Preview

Change the organization role an invitation gives

Changes the role the invited person is given when they accept, before they do. An invitation is never to Owner. When the invitation carries access that a Viewer cannot hold, the role must stay at least Contributor (`400` `binding.below_org_role`). Writes an Activity entry.

PUT
/members/invitations/{invitationId}/role
cookiebetter-auth.session_token<token>

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

invitationId*string
Length1 <= length <= 128
application/json
  1. body
orgRole*string
Value in"admin""contributor""viewer"

Response Body

Saved.

Example Request
curl -X PUT 'https://wardn.example.com/api/v1/members/invitations/string/role' \  -H 'Content-Type: application/json' \  -d '{  "orgRole": "admin"}'
Example Response
Empty