Set the role of a member
People
Set the role of a member
Change the role a member holds. The role is validated against the roles defined in your workspace.
Required scope members:edit
patch
/members/{id}Authorizations
AuthorizationstringrequiredAuthorization header carrying a workspace API key, as “Bearer kbn_live_…”. The X-Api-Key header is accepted equivalently.
Path parameters
idstring<uuid>requiredIdentifier of the member account.
Bodyapplication/json
rolestring<uuid>requiredRole to grant the member.
Response200 · application/json
The updated member record.
accountIdstring<uuid>requiredIdentifier of the member account.
emailstringrequiredEmail address of the member.
firstNamestring | nullFirst name of the member.
lastNamestring | nullLast name of the member.
rolestring | nullRole the member holds in the workspace.
pendingbooleanrequiredWhether the invitation is still awaiting acceptance.
createdAtstring<date-time>Timestamp the member joined.