latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-2684278289.5 KB

0bdf4a496e03

Books

Update a Ledger Template

Update an existing ledger within an agent-owned Chart of Accounts template.

put/books/agent-ledger-template/{ledgerId}

Path parameters

ledgerIdstring base58 (max length 22) required

unique id for a ledger

Example:7JRNsKwy2Lw66caxVU7WGC

Request body

namestring nullable

The name of the ledger.

sortCodestring matches ^[0-9]+$, size < 21 nullable

Determines the display order in reports, ordered digit by digit.

Response

Example response

{
  "ledgerTemplate": {
    "children": [
      {
        "id": "7JRNsKwy2Lw66caxVU7WGC",
        "parentId": "7JRNsKwy2Lw66caxVU7WGC"
      }
    ],
    "id": "7JRNsKwy2Lw66caxVU7WGC",
    "parentId": "7JRNsKwy2Lw66caxVU7WGC"
  }
}