Remove team members
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v1/team_members \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"emails": [
"oliver@example.com",
"jane@example.com"
]
}
'const options = {
method: 'DELETE',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({emails: ['oliver@example.com', 'jane@example.com']})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v1/team_members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v1/team_members"
payload = { "emails": ["oliver@example.com", "jane@example.com"] }
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, 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 members
Remove team members by email.
DELETE
/
team_members
Remove team members
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v1/team_members \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"emails": [
"oliver@example.com",
"jane@example.com"
]
}
'const options = {
method: 'DELETE',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({emails: ['oliver@example.com', 'jane@example.com']})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v1/team_members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v1/team_members"
payload = { "emails": ["oliver@example.com", "jane@example.com"] }
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"message": "Team member has been removed"
}{
"error": "Cannot remove the last admin of the workspace"
}This endpoint is part of API v1, which is deprecated. Please use the v2 API instead.
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 Body
application/json
Emails of the team members to be removed from the workspace in array format.
Example:
["oliver@example.com", "jane@example.com"]
Response
OK - Team members removed successfully
Example:
"Team member has been removed"