---
title: "Update Subaccount"
method: PATCH
path: "/v1/subaccounts/{subaccount_id}"
tags: ["subaccounts"]
---

# Update Subaccount

`PATCH /v1/subaccounts/{subaccount_id}`

Update an existing subaccount.

## Path parameters

- `subaccount_id` string, required

## Request body

- SubaccountUpdate — Schema for updating a subaccount.
  - `name` string, nullable
  - `description` string, nullable

## Response `200`

Successful Response

- SubaccountResponse — Schema for subaccount response.
  - `subaccount_id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `account_type` 'custodial' | 'non_custodial', required — Type of trading subaccount.
  - `is_active` boolean, required
  - `inserted_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/rivermarkets/apis/river-finance-api.md) · [All operations](https://skmtc.net/rivermarkets/apis/river-finance-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rivermarkets/river-finance-api/revisions/0f4eceac44fb/schema)
