Chart of Accounts Templates
Update CoA Ledger Template
Update a ledger template in a Chart of Accounts template.
PUT
/
v0
/
platform-gl
/
coa-templates
/
ledgers
/
{ledger_template_id}
Authorization
Path
Body
curl --request PUT \
--url https://api.sandbox.teal.dev/v0/platform-gl/coa-templates/ledgers/{ledger_template_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"sort_code": "<string>"
}'
{
"children": [
"<any>"
],
"debit_credit": "debit",
"editable": true,
"id": "DHyQ8EFqVWPDujU9dKRsyw",
"is_required": true,
"name": "Salaries And Wages Expense",
"parent_id": "HUeT6rusHJAuS3NHhW9PE5",
"report_cash_flow": true,
"sort_code": "5300",
"sub_type": "current_expenses",
"type": "expense"
}
Authorizations
Authorization
string
headerrequiredThe access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
ledger_template_id
string
requiredThe ID of the ledger template.
Body
application/json
name
string | null
The new name of the ledger template
sort_code
string | null
The new sort code of the ledger template.
Response
201 - application/json
children
any[] | null
requiredA list of child ledger templates
debit_credit
enum<string>
requiredAvailable options:
debit
, credit
editable
boolean
requiredIndicates whether this ledger may be edited.
id
string
requiredis_required
boolean
requiredIndicates whether this ledger is required to exist in the template.
name
string
requiredparent_id
string | null
requiredThe ID of the parent ledger template
report_cash_flow
boolean
requiredIndicates entries in the ledger should be included in the cash flow report.
sort_code
string
requiredsub_type
enum<string>
requiredAvailable options:
current_assets
, non-current_assets
, transfers_between_accounts
, uncategorized_assets
, current_liabilities
, non-current_liabilities
, equity
, operating_revenues
, other_income
, cost_of_goods_sold
, operating_expenses
, other_expenses
type
enum<string>
requiredAvailable options:
asset
, liability
, equity
, revenue
, expense
, profit
curl --request PUT \
--url https://api.sandbox.teal.dev/v0/platform-gl/coa-templates/ledgers/{ledger_template_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"sort_code": "<string>"
}'
{
"children": [
"<any>"
],
"debit_credit": "debit",
"editable": true,
"id": "DHyQ8EFqVWPDujU9dKRsyw",
"is_required": true,
"name": "Salaries And Wages Expense",
"parent_id": "HUeT6rusHJAuS3NHhW9PE5",
"report_cash_flow": true,
"sort_code": "5300",
"sub_type": "current_expenses",
"type": "expense"
}