Remove team member
curl --request DELETE \
--url https://{your-subdomain}.neetorecord.com/api/external/v1/team_members/{team_member_id} \
--header 'Accept: <accept>' \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>', Accept: '<accept>'}};
fetch('https://{your-subdomain}.neetorecord.com/api/external/v1/team_members/{team_member_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetorecord.com/api/external/v1/team_members/{team_member_id}"
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"message": "Team member has been removed"
}{
"error": "Cannot remove the last admin of the workspace"
}API v1 (deprecated)
Remove team member
Remove team members from the workspace.
DELETE
/
team_members
/
{team_member_id}
Remove team member
curl --request DELETE \
--url https://{your-subdomain}.neetorecord.com/api/external/v1/team_members/{team_member_id} \
--header 'Accept: <accept>' \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>', Accept: '<accept>'}};
fetch('https://{your-subdomain}.neetorecord.com/api/external/v1/team_members/{team_member_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetorecord.com/api/external/v1/team_members/{team_member_id}"
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"message": "Team member has been removed"
}{
"error": "Cannot remove the last admin of the workspace"
}Deprecated: This is a v1 endpoint. It will continue to work, but we
recommend migrating to the v2 equivalent for improved REST
compliance (correct HTTP status codes, consistent response envelopes, and
hyphenated URLs).
Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
API key. Refer to Authentication for more information.
Must be application/json.
Available options:
application/json Path Parameters
Id of the team member that you want to remove. You can get team_member_id by listing all team members using our List team members API. Here you will see id for each team member.
Example:
"aaaabbbb-cccc-dddd-eeee-ffff00001111"
Response
OK - Team member removed successfully
Example:
"Team member has been removed"