---
title: "Update user role"
method: PATCH
path: "/accounts/role"
tags: ["User Management"]
---

# Update user role

`PATCH /accounts/role`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/role`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/role/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates a user's role in an account

## Request body

- object
  - `email` string, email, required: User email
  - `role` 'admin' | 'developer' | 'monitor' | 'billing', required: New role

## Response `200`

Role updated successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
