# Update account

```http
PATCH /accounts/{account_id}
```

Change an account's name or slug. Requires account.settings.manage.

## Parameters

| Name         | In   | Required | Description |
| ------------ | ---- | -------- | ----------- |
| `account_id` | path | Yes      |             |

## Request body

| Field  | Type   | Required | Description                                                                             |
| ------ | ------ | -------- | --------------------------------------------------------------------------------------- |
| `name` | string |          | New account name. Omitted, the current name remains unchanged.                          |
| `slug` | string |          | New account slug. Omitted, the current slug remains unchanged; a duplicate returns 409. |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Updated account                                                                                             |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 409    | Conflict                                                                                                    |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
