Add Org Group Members
curl --request POST \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/groups/{groupSlug}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"<string>"
],
"emails": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({userIds: ['<string>'], emails: ['<string>']})
};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/groups/{groupSlug}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/groups/{groupSlug}/members"
payload = {
"userIds": ["<string>"],
"emails": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"orgSlug": "<string>",
"groupSlug": "<string>",
"userId": "<string>",
"id": "<string>",
"createdBy": "<string>",
"createdAt": "<string>"
}
]{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Organizations
Add Org Group Members
Add members to a group in bulk. Provide either userIds or emails. All users must already be members of the organization.
POST
/
v2
/
orgs
/
{orgSlug}
/
groups
/
{groupSlug}
/
members
Add Org Group Members
curl --request POST \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/groups/{groupSlug}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"<string>"
],
"emails": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({userIds: ['<string>'], emails: ['<string>']})
};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/groups/{groupSlug}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/groups/{groupSlug}/members"
payload = {
"userIds": ["<string>"],
"emails": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"orgSlug": "<string>",
"groupSlug": "<string>",
"userId": "<string>",
"id": "<string>",
"createdBy": "<string>",
"createdAt": "<string>"
}
]{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?