# Update Account

> Update an existing trading account. Use this to change account-level properties such as status, group, or other account configuration.

Source: /admin/accounts-funding/accounts/accounts-service_-account-update

## `PUT /accounts/{accountId}`

**Update Account**

Update an existing trading account. Use this to change account-level properties such as status, group, or other account configuration.

Tags: `Accounts`

#### Path parameters

- `accountId` (string) (required) — Required to identify the account to update


### Request body

**Content-Type:** `application/json`

AccountUpdateReq — partial update of a trading account; only listed fields are written.
- `groupId` (string)
- `maxLeverage` (string)
- `maxNop` (number)
- `status` (string)
  - enum: `TRADE_STATUS_UNSPECIFIED`, `TRADE_STATUS_FULL`, `TRADE_STATUS_CLOSE_ONLY`, `TRADE_STATUS_DISABLED`, `TRADE_STATUS_LONG_ONLY`
- `dailyStatement` (boolean)


### Responses

#### `200` — A successful response.

**Content-Type:** `application/json`

- `id` (string)
- `groupId` (string)
- `profileId` (string)
- `currency` (string)
- `positionMode` (string)
  - enum: `POSITIONING_MODE_UNSPECIFIED`, `POSITIONING_MODE_NETTING`, `POSITIONING_MODE_HEDGING`
- `status` (string)
  - enum: `TRADE_STATUS_UNSPECIFIED`, `TRADE_STATUS_FULL`, `TRADE_STATUS_CLOSE_ONLY`, `TRADE_STATUS_DISABLED`, `TRADE_STATUS_LONG_ONLY`
- `nop` (number)
- `balance` (number)
- `maxLeverage` (string)
- `version` (string)
- `isSb` (boolean)
- `isDemo` (boolean)
- `marginCalcTypeOverride` (string) — MarginCalculationType defines how opposing positions on the same symbol are combined.

 - MARGIN_CALC_TYPE_UNSPECIFIED: unspecified — behaves as SUM
 - MARGIN_CALC_TYPE_SUM: long_margin + short_margin (most conservative)
 - MARGIN_CALC_TYPE_MAX: max(long_margin, short_margin) — partial hedging relief
 - MARGIN_CALC_TYPE_NET: margin on abs(long_qty - short_qty) — full hedging offset
  - enum: `MARGIN_CALC_TYPE_UNSPECIFIED`, `MARGIN_CALC_TYPE_SUM`, `MARGIN_CALC_TYPE_MAX`, `MARGIN_CALC_TYPE_NET`
- `dailyStatement` (boolean)

#### `default` — An unexpected error response.

**Content-Type:** `application/json`

- `code` (integer)
- `message` (string)
- `details` (array)
  - items:
    - `@type` (string)

