Access
Preview

Choose the access an invitation gives on acceptance

When the invited person accepts, they are given the role on the place, ending on the expiry. It replaces any access the invitation carried before. The caller needs what a grant of that role there needs, and a role that only reads may go to any organization role, but one that changes things needs Con

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

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

invitationId*string
Length1 <= length <= 128
application/json
  1. body
roleId*string
Formatuuid
scope*
expiry?

When the access ends. With neither field it never does.

Response Body

Saved.

Example Request
curl -X PUT 'https://wardn.example.com/api/v1/members/invitations/string/access' \  -H 'Content-Type: application/json' \  -d '{  "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",  "scope": {    "kind": "org",    "label": "string"  }}'
Example Response
Empty