Skip to main content
PUT
/
users
/
{subOrEmail}
Update user role in workspace
curl --request PUT \
  --url https://api.blaxel.ai/v0/users/{subOrEmail} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "<string>"
}'
{
  "accepted": true,
  "email": "<string>",
  "email_verified": true,
  "family_name": "<string>",
  "given_name": "<string>",
  "role": "<string>",
  "sub": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subOrEmail
string
required

Sub or email of the user

Body

application/json
role
string
required

The new role to assign to the user

Response

User role updated successfully

Workspace user

accepted
boolean

Whether the user has accepted the workspace invitation

email
string

Workspace user email

email_verified
boolean

Whether the user's email has been verified

family_name
string

Workspace user family name

given_name
string

Workspace user given name

role
string

Workspace user role

sub
string

Workspace user identifier

I