---
title: "Update a sub-account."
method: POST
path: "/v0.2.4/sub-account/update"
tags: ["SubAccount"]
---

# Update a sub-account.

`POST /v0.2.4/sub-account/update`

## Request body

- object
  - `id` string, required — Sub Account ID.
  - `meta` object, required — meta to store any number of user information.
  - `firstName` string — First Name of user.
  - `lastName` string — Last Name of user.
  - `phoneNumber` string — Phone Number with country code starting with a +.

## Response `200`

Success.

- object
  - `status` string
  - `message` string — A message indicating that the sub-account has been updated.
  - `data` object
    - `_writeTime` object — The timestamp indicating when the update occurred.
      - `_seconds` integer — The seconds part of the timestamp.
      - `_nanoseconds` integer — The nanoseconds part of the timestamp.

## Other responses

- `400` — Validation error in the request.
- `401` — Access to this resource is not available for unauthenticated users.
- `403` — Access to this resource is forbidden.
- `500` — Indicates an internal server error.

---

[API](https://skmtc.net/chimoney/apis/chimoney-api-docs.md) · [All operations](https://skmtc.net/chimoney/apis/chimoney-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chimoney/chimoney-api-docs/revisions/227751df36a0/schema)
