Skip to main content
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.keystoneos.xyz/v1/platforms/me/members/{user_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "user_id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "picture": "<string>",
  "roles": []
}

Authorizations

Authorization
string
header
required

Auth0 JWT access token. See Authentication for details.

Path Parameters

user_id
string
required

Body

application/json
role_ids
string[]
required

Response

Successful Response

user_id
string
required
email
string | null
name
string | null
picture
string | null
roles
RoleRead · object[]