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
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
invitationId*string1 <= length <= 128application/json- body
roleId*stringuuidscope*expiry?When the access ends. With neither field it never does.
Saved.
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" }}'List the invitations that wait for an answer GET
The organization's open invitations, newest first, each with the access it carries and the link that accepts it. The link is a credential, so only those who manage members read it; it is never part of any other answer. An install need not send email, and the link is how an invitation reaches someone
Change the organization role an invitation gives PUT
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.