Change a member's role
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/role \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"membership_id": 123,
"role": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/role"
payload = {
"membership_id": 123,
"role": "<string>"
}
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, role: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/role', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Team & workspaces
Change a member's role
Sets a membership’s role. Refuses to demote the only admin (flash). 400 if membership_id is missing or not a number, 404 if the membership is not in this workspace. Admin of that workspace or super-admin.
Minimum role: admin (x-min-role). Destructive: false (x-destructive).
POST
/
workspaces
/
{ws_id}
/
team
/
role
Change a member's role
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/role \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"membership_id": 123,
"role": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/role"
payload = {
"membership_id": 123,
"role": "<string>"
}
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, role: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/role', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));