Invite Member
Invite one person into the organisation, at a role below administrator.
status in the response is the app's own: invited when an invitation email went out to someone with no graph8 account, added when the person already had one and now holds the role immediately. Re-inviting the same address is safe - the pending invitation is UPDATED to the new role rather than duplicated - so a reconciliation loop may call this once per row.
ADMINISTRATOR ROLES ARE REFUSED HERE, AND THAT IS WHY THIS ROUTE CAN EXIST AT ALL. The module docstring withholds every route that can end with a person holding PropelAuth Owner or Admin. The reason is specific: build_api_principal can answer AS an org administrator, and the app's _assert_can_grant_permissions bypasses its non-escalation check for a privileged org role - so a bare proxy of the app handler would let a credential mint an administrator. Capping the role here removes exactly that, and leaves the capability that was actually asked for: admitting members and project roles in bulk from a script, a workflow or an agent. Granting administration stays a decision for a person, in the product.
422 when neither or both of role_id/role are given; 404 when the role is not this organisation's; 403 when the role is administrator-equivalent, or when the app refuses the grant because the key's own permissions do not cover the role's.
Request
- Base URL: https://be.graph8.com/api/v1
- URL: https://be.graph8.com/api/v1/roles/invite
- Auth: HTTP bearer
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.