Add an organization member

POST/api/org/members/add

Adds a user (looked up by email) to an organization-owned namespace, or updates their role if already a member. Session cookie only — personal access tokens are not accepted; a Bearer-authenticated request returns 403. Requires the caller to be an admin of the organization.

Body Parameters

ownerstringrequired
Organization owner slug.
emailstringrequired
Email of an existing LeafPage user to add.
rolestring
Default "member". One of admin, member.