Skip to main content
PATCH
/
accounts
/
role
Update user role
curl --request PATCH \
  --url https://api.quiva.ai/accounts/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "role": "admin"
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string<email>
required

User email

role
enum<string>
required

New role

Available options:
admin,
developer,
monitor,
billing

Response

Role updated successfully

message
string