Skip to main content
POST
/
v0
/
platform-gl
/
coa-templates
Create a Chart of Accounts Template
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/platform-gl/coa-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "ledger_ids": [
    "<string>"
  ],
  "ledgers": null
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

expand
enum<string>[] | null

Comma-separated list of expandable paths. Comma-separated list of expandable paths.

Available options:
ledgers

Body

application/json
name
string
required

An arbitrary string on the object, useful for identifying the Chart of Accounts template.

Response

Successful Response

id
string
required

The unique ID of the object.

name
string
required

An arbitrary string on the object, useful for identifying the Chart of Accounts template.

ledger_ids
string[]
required

A list of IDs of the Ledger Template objects associated with the Chart of Accounts Template

ledgers
LedgerTemplate · object[] | null

Expandable. A list of the Ledger Templates associated with the Chart of Accounts Template.

Example:

null