cURL
curl --request PUT \ --url https://api.sandbox.teal.dev/v0/ledgers/{ledger_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'teal-instance-id: <teal-instance-id>' \ --data '{ "debit_credit": "debit", "name": "Pluto Checking 4242", "parent_id": null, "sort_code": "1400", "sub_type": "current_assets", "type": "asset", "clear_fields": [ "parent_id" ] }'
{ "id": "7JRNsKwy2Lw66caxVU7WGC", "name": "Pluto Checking 4242", "debit_credit": "debit", "editable": false, "financial_account_type": "bank_account", "is_required": false, "parent": {}, "parent_id": null, "report_cash_flow": false, "sort_code": "1400", "sub_type": "current_assets", "type": "asset" }
Updates a Ledger.
The access token received from the authorization server in the OAuth 2.0 flow.
The Teal instance ID
The ledger ID
Comma-separated list of Ledger expand paths.
Show child attributes
Successful Response
The response is of type object.
object