Add a member to a workspace
curl --request POST \
--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.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
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
Add a member to a workspace
⚠️ ALPHA ENDPOINT - This endpoint is in alpha and subject to breaking changes. Use with caution in production environments.
Add a new member (user or group) to a custom workspace you own.
POST
/
api
/
v3
/
workspaces
/
{id}
/
members
Add a member to a workspace
curl --request POST \
--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.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
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