Remove team members
curl --request DELETE \
--url https://{your-subdomain}.neetoinvoice.com/api/external/v2/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}.neetoinvoice.com/api/external/v2/team-members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoinvoice.com/api/external/v2/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){
"error": "Cannot remove the last admin of the workspace"
}Team members
Remove team members
Remove team members.
DELETE
/
team-members
Remove team members
curl --request DELETE \
--url https://{your-subdomain}.neetoinvoice.com/api/external/v2/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}.neetoinvoice.com/api/external/v2/team-members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoinvoice.com/api/external/v2/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){
"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
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
No Content - Team members removed successfully