Remove an organization member

POST/api/org/members/remove

Removes a member from an organization-owned namespace. 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; the organization's last remaining admin cannot be removed.

Body Parameters

ownerstringrequired
Organization owner slug.
userIdstringrequired
The target member's user id (see GET /api/org/members).