Remove a member from an organization
DELETE
/organizations/{org_id}/members/{user_id}
const url = 'https://api.perstat.io/organizations/example/members/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org_id
required
string
user_id
required
string
Responses
Section titled “Responses”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.