---
title: "Update Sub-wallet"
method: PATCH
path: "/sub_wallets/{id}"
tags: ["Sub-wallets"]
---

# Update Sub-wallet

`PATCH /sub_wallets/{id}`

Update an existing sub-wallet using the given `:id`. You can change the `name` of an enabled sub-wallet. You can change the  `active` status of a `redacted` sub-wallet.

## Path parameters

- `id` string, required

## Request body

- union
  - SubWalletUpdateRequestBody1
    - `name` string — sub-wallet name
    - `active` boolean — status of sub-wallet
  - SubWalletUpdateRequestBody2
    - `name` string — sub-wallet name
  - SubWalletUpdateRequestBody3
    - `active` boolean — status of sub-wallet

## Response `200`

OK

- SubWallet
  - `sub_wallets` SubWalletSubWallets
    - `id` string, uuid
    - `name` string
    - `balance` integer
    - `active` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `currency` string
    - `links` SubWalletSubWalletsLinks
      - `self` object
      - `users` object
      - `transactions` object
      - `wallet_accounts` object

## Other responses

- `422` — unprocessable content

---

[API](https://skmtc.net/hellozai/apis/assembly-api.md) · [All operations](https://skmtc.net/hellozai/apis/assembly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hellozai/assembly-api/revisions/60b528b2e015/schema)
