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>"
}
Updates the role of a user in the 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>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Sub or email of the user
User role updated successfully
Workspace user
Was this page helpful?