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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org_id
required
string
user_id
required
string