Introducing Confident Monitor

Remove Project Member

(v2)

DELETE

Revokes a member's access to this project only: they are disconnected from it, their project role is deleted, and any outstanding invitation for their email on this project is cleared. They keep their organization membership and access to every other project, so this does not free up a seat. The project Owner cannot be removed, so transfer ownership first. Inviting the same address again brings them back with the default role rather than the one they had.

DELETE/v2/projects/{projectId}/members/{userId}
curl -X DELETE "https://api.confident-ai.com/v2/projects/{projectId}/members/{userId}" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<USER-ID>"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • projectIdstringRequired

    The id of the project, which must belong to your organization.

  • userIdstringRequired

    The id of the user whose membership of this project to change.

Response

Remove Project Member succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    Confirmation 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
    • idstring

      The id of the user who was removed.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI