Update member roles
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({role_ids: ['<string>']})
};
fetch('https://api-staging.keystoneos.xyz/v1/platforms/me/members/{user_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/platforms/me/members/{user_id}"
payload = { "role_ids": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)curl --request PATCH \
--url https://api-staging.keystoneos.xyz/v1/platforms/me/members/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role_ids": [
"<string>"
]
}
'{
"user_id": "<string>",
"email": "<string>",
"name": "<string>",
"picture": "<string>",
"roles": []
}Team Management
Update member roles
Replace a member’s roles within the organization. Roles the member lacks are assigned before roles they are losing are removed, so a failure part-way never leaves the member with fewer roles than before; if the removal fails the member holds both sets and the same request can be retried. Only roles from the assignable role set (GET /platforms/me/members/roles) can be assigned. Requires a user token. You cannot change your own roles, and a change that would leave the organization without a member who can manage members is refused. Member changes are applied one at a time per organization.
PATCH
/
v1
/
platforms
/
me
/
members
/
{user_id}
Update member roles
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({role_ids: ['<string>']})
};
fetch('https://api-staging.keystoneos.xyz/v1/platforms/me/members/{user_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/platforms/me/members/{user_id}"
payload = { "role_ids": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)curl --request PATCH \
--url https://api-staging.keystoneos.xyz/v1/platforms/me/members/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role_ids": [
"<string>"
]
}
'{
"user_id": "<string>",
"email": "<string>",
"name": "<string>",
"picture": "<string>",
"roles": []
}Authorizations
Auth0 JWT access token. See Authentication for details.
Path Parameters
Body
application/json