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"
  }
}

Changes

No recorded changes to this endpoint across all 45 revisions of this API.