Remove Member
DELETEhttps://api.confident-ai.com/v2/organization/members/{userId}
Revokes a member's access to the organization and to everything inside it: they are detached from the organization, disconnected from every project in it, their organization and project roles are deleted, and any invitation still outstanding for their email address is cleared. The Owner cannot be removed, so transfer ownership first. Removal is not reversible through this endpoint — the only way back is a fresh invitation, which returns them with no project access. The user's own account and the records they created are kept.
curl -X DELETE "https://api.confident-ai.com/v2/organization/members/{userId}" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"id": "<USER-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
userIdstringRequiredThe id of the user whose organization membership to change.
Response
Remove Member succeeded.
successbooleanIndicates if the request was successful.
dataobjectConfirmation that the user is no longer a member. Removing an organization member also removes them from every project in it; removing a project member leaves their organization membership untouched.
Show 1 propertyHide 1 property
idstringThe id of the user who was removed.
deprecatedbooleanIndicates if this endpoint is deprecated.