Remove a team member
curl --request DELETE \
--url https://{your-subdomain}.neetodesk.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}.neetodesk.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}.neetodesk.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"
}API v1 (deprecated)
Remove a team member
Removes a team member from the workspace. The team member is deactivated (soft-deleted).
DELETE
/
team_members
/
{team_member_id}
Remove a team member
curl --request DELETE \
--url https://{your-subdomain}.neetodesk.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}.neetodesk.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}.neetodesk.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"
}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
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Specifies the expected response format. Must be set to application/json for proper API communication.
Available options:
application/json Path Parameters
Id of the team member to remove. You can get team_member_id by listing all team members using our List all team members API.
Example:
"aaaabbbb-cccc-dddd-eeee-ffff00001111"
Response
200 - application/json
OK - Team member removed successfully
Example:
"Team member has been removed"