Remove team member
curl --request DELETE \
--url https://{your-subdomain}.neetorecord.com/api/external/v2/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/v2/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/v2/team-members/{team_member_id}"
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "Cannot remove the last admin of the workspace"
}Team members
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/v2/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/v2/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/v2/team-members/{team_member_id}"
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "Cannot remove the last admin of the workspace"
}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.
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
No Content - Team member removed successfully