---
type: api
title: Updates the current account
description: Updates the current account.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-patch-current-account
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-patch-current-account
products:
  - Elastic Cloud Enterprise
---

# Updates the current account

## Paths

- `PATCH` `/account`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#apikey)

## Description

Updates the current account.

## Request Body

`application/json`

All changes in the specified object are applied to the current account according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.

Type: `string`


## Responses

#### `200`

Account updated successfully

`application/json`

- `id` (string)
  The account's identifier
- `trust` ({} AccountTrustSettings)
  Settings related to the level of trust of the clusters in this account
  - `trust_all` (boolean)
    If true, all clusters in this account will by default trust all other clusters in the same account
#### `404`

Account not found. (code: `accounts.not_found`)

`application/json`

- `errors` ([] BasicFailedReplyElement)
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` ([] string)
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response Headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code Examples

#### Console

```console
PATCH /account
```

#### curl

```curl
curl -X PATCH "/account"
```

