---
search:
  tags:
    - Account
    - PATCH
seo:
  description: >-
    Changes the name of the account the credential belongs to. An API key cannot
    do this. Reference for the PATCH /_luna/auth/me endpoint in the Luna API.
sidebar:
  label: Rename the current account
  badge: PATCH
title: Rename the current account
type: openapi-operation
---
Changes the name of the account the credential belongs to. An API key cannot do this.

`PATCH /_luna/auth/me`

**Request body** (`application/json`, required)

- `name` (string, required) — The new name, at most 100 characters.

Request body example:

```json
{
  "name": "string"
}
```

**Responses**

- `200` — The account with its new name.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "account": {
    "id": "string",
    "email": "string",
    "name": "string"
  }
}
```
