Update Org Member
curl --request PATCH \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"roleSlug": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', roleSlug: '<string>'})
};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/{userId}', 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}/members/{userId}"
payload = {
"userId": "<string>",
"roleSlug": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"orgSlug": "<string>",
"userId": "<string>",
"status": "active",
"id": "<string>",
"roleSlug": "<string>",
"invitedBy": "<string>",
"invitedAt": "<string>",
"inviteEmail": "<string>",
"inviteToken": "<string>",
"joinedAt": "<string>",
"joinedVia": "direct",
"groups": [
"<string>"
],
"pendingGroups": [
"<string>"
],
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Organizations
Update Org Member
Update a member’s role or status
PATCH
/
v2
/
orgs
/
{orgSlug}
/
members
/
{userId}
Update Org Member
curl --request PATCH \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"roleSlug": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', roleSlug: '<string>'})
};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/{userId}', 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}/members/{userId}"
payload = {
"userId": "<string>",
"roleSlug": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"orgSlug": "<string>",
"userId": "<string>",
"status": "active",
"id": "<string>",
"roleSlug": "<string>",
"invitedBy": "<string>",
"invitedAt": "<string>",
"inviteEmail": "<string>",
"inviteToken": "<string>",
"joinedAt": "<string>",
"joinedVia": "direct",
"groups": [
"<string>"
],
"pendingGroups": [
"<string>"
],
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<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.
Body
application/json
Response
Success
Available options:
active, invited, suspended Available options:
direct, invite-code, invite-email, auto-join, join-rule Org group slugs the user belongs to. Only populated on listOrgMembers when includeGroups=true.
Group slugs to add the user to once they accept their invite. Set at import time for pending/invited members; cleared and applied as real group memberships when the invite is claimed.
Was this page helpful?