Update an accounting ledger
PATCH/api/v1/accounting_ledgers/:id
Renames or recodes an existing accounting ledger.
company_id is ignored here - a ledger never moves between companies. Both code and name stay unique within the owning company.
Request
Responses
- 200
- 401
- 404
- 422
The accounting ledger was updated and is returned with its new attribute values.
The request did not include a valid OAuth 2.0 access token.
No accounting ledger exists with the given id, or it belongs to a workspace the access token's OAuth application is not linked to.
The payload was refused: code is validation_failed and details.base reports the name or code the owning company already uses.