---
title: "PUT /cashAccount/id/{id}"
method: PUT
path: "/cashAccount/id/{id}"
tags: ["cashAccount"]
---

# PUT /cashAccount/id/{id}

`PUT /cashAccount/id/{id}`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/cashAccount/id/{id}`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/cashAccount/id/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

update cashAccount

## Path parameters

- `id` string, required

## Query parameters

- `dryRun` boolean

## Request body

- CashAccount
  - `id` string
  - `version` string
  - `accountId` string
  - `active` boolean
  - `cashAccountSheets` OnlyId[]
    - `id` string
  - `createdDate` integer
  - `currencyId` string, required
  - `dcoCashLedger` string
  - `description` string
  - `lastModifiedDate` integer
  - `openingBalance` string, number
  - `treasurerId` string, required

## Response `200`

cashAccount update response

- CashAccount
  - `id` string
  - `version` string
  - `accountId` string
  - `active` boolean
  - `cashAccountSheets` OnlyId[]
    - `id` string
  - `createdDate` integer
  - `currencyId` string, required
  - `dcoCashLedger` string
  - `description` string
  - `lastModifiedDate` integer
  - `openingBalance` string, number
  - `treasurerId` string, required

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`
- **2022-12-03** `cc274ef79dfd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/cashAccount/id/:id/put.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
