---
title: "Rename account"
method: PATCH
path: "/accounts/rename"
tags: ["Account Management"]
---

# Rename account

`PATCH /accounts/rename`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/rename`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Renames an account
- Allows the root user of an account to change the display name and internal name of their account
- They must request a verification code to be able to finalize the process (see **/accounts/email-code**)
- Once an account name is changed, all user sessions will be automatically revoked. Affected users will be notified about the change by email.

## Request body

- object
  - `new_name` string, required: New account name. Cannot clash with the name of another account on the platform
  - `email_code` string, required: Email verification code. To obtain one, see **/accounts/email-code**

## Response `200`

Account renamed successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `409`: Account name already exists

---

[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)
