Remove Users from Team Using the API
Context
There are a few things to keep in mind when using this API endpoint: Removing a user from a team could cause unintended consequences for verification of content. If you remove a user who is a verifier of content and do not replace them with a new verifier, the content could become unassigned.
There is no way to bulk remove users using the API. Each of these endpoints will need to be called once per user that is being removed.
Remove a User without Replacing the Verifier
DELETE api/v1/members/{email}This call requires no request body. A successful call will return a 200 status.
Remove a User and Replace with a New Verifier
DELETE api/v1/members/{email}/replaceverifier
You must include the collection IDs of each collection that this user has verified content in . If they have verified content in numerous collections, the "collectionVerifiers" key will take a list of collection objects, examples below.
Replace with an individual verifier:
{"collectionVerifiers": {"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx": {"type": "member","id": "bcumens+test@getguru.com"}}}
Replace with a user-group:
{"collectionVerifiers": {"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx": {"type": "user-group","id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}}}
⚠️Use these endpoints with caution ⚠️