# Update Account

Updates the name or other details of an existing account.

**PATCH** `/organizations/accounts/{account_id}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Updates an account.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Path parameters

- `account_id` (string, required)
  Account UUID.

## Body

Content type: `application/json`

- `name` (string)
  Account name (min=1, max=255).

Example:

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

## Responses

### 200

OK

- `id` (string<uuid>)
- `name` (string)
- `account_group_id` (string<uuid>)
- `created_at` (string<date-time>)
- `updated_at` (string<date-time>)

Example:

```json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "account_group_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}
```