Skip to content

Remove a member from an organization

DELETE
/organizations/{org_id}/members/{user_id}
curl --request DELETE \
--url https://api.perstat.io/organizations/example/members/example \
--header 'Authorization: Bearer <token>'

Removes a user’s membership from the organization. The user_id path segment is the user’s public id, not an email. Requires member management rights, cannot target members at or above the caller’s own role level, and refuses to remove the last remaining owner with 409. Accepts API keys with the org:write scope, subject to current role and resource grants.

org_id
required
string
user_id
required
string

Request succeeded. The response has no body.

Authentication is missing or invalid.

The authenticated caller does not have permission to perform this operation.

No accessible resource matches the supplied identifier.

The request conflicts with the current resource state.