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

# Rename account

`PATCH /accounts/rename`

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.net/quivaworks/apis/quiva-ai-gateway.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway/versions/771d118bd4d1/schema)
