cURL
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>" }
Updates a user’s role in an account
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User email
New role
admin
developer
monitor
billing
Role updated successfully