PUT
/
users
/
{subOrEmail}
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

Response

200
application/json

User role updated successfully

Workspace user