Add or update a team member
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/add \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"email": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/add"
payload = { "email": "<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({email: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Team & workspaces
Add or update a team member
Adds a member by email. If no user with that email exists, one is created with the given password (required then); if the user exists, the password is ignored. If already a member, their role is changed. Admin of THAT workspace or super-admin (403 otherwise). Refuses with flash: invalid email, invalid role, missing password for a new user. 404 if the workspace does not exist.
Minimum role: admin (x-min-role). Destructive: false (x-destructive).
POST
/
workspaces
/
{ws_id}
/
team
/
add
Add or update a team member
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/add \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"email": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/add"
payload = { "email": "<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({email: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/team/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Path Parameters
Body
application/json
Response
200
Redirect to the team page; flash 'Added as .' or 'Updated ...'.