Remove a member from a workspace
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/remove \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"membership_id": 123
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/remove"
payload = { "membership_id": 123 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({membership_id: 123})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Team & workspaces
Remove a member from a workspace
Deletes the membership (the user account stays). Refuses to remove the only admin (flash). 400 if membership_id is missing, 404 if not in this workspace. Admin of that workspace or super-admin.
Minimum role: admin (x-min-role). Destructive: true (x-destructive).
POST
/
workspaces
/
{ws_id}
/
team
/
remove
Remove a member from a workspace
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/remove \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"membership_id": 123
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/remove"
payload = { "membership_id": 123 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({membership_id: 123})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));