Replace all workspace members
curl --request PUT \
--url https://paradigm.lighton.ai/api/v3/workspaces/{id}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://paradigm.lighton.ai/api/v3/workspaces/{id}/members"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://paradigm.lighton.ai/api/v3/workspaces/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"users": [
{
"id": 123,
"email": "<string>",
"role": "<string>"
}
],
"groups": [
{
"id": 123,
"name": "<string>",
"role": "<string>"
}
]
}Workspaces
Replace all workspace members
⚠️ ALPHA ENDPOINT - This endpoint is in alpha and subject to breaking changes. Use with caution in production environments.
Bulk replace the entire list of members for a custom workspace you own. The authenticated user must be an owner of the workspace and belong to the same company as the workspace. All given users and groups must belong to the same company as the workspace.
PUT
/
api
/
v3
/
workspaces
/
{id}
/
members
Replace all workspace members
curl --request PUT \
--url https://paradigm.lighton.ai/api/v3/workspaces/{id}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://paradigm.lighton.ai/api/v3/workspaces/{id}/members"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://paradigm.lighton.ai/api/v3/workspaces/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"users": [
{
"id": 123,
"email": "<string>",
"role": "<string>"
}
],
"groups": [
{
"id": 123,
"name": "<string>",
"role": "<string>"
}
]
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data