POST
/
v0
/
platform-gl
/
coa-templates
/
{coa_template_id}
/
clone
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/platform-gl/coa-templates/{coa_template_id}/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Coffee Shop C-Corp"
}'
{
  "id": "PpvsmFEv14yGDyT6iV6kXw",
  "name": "Coffee Shop Sole Prop",
  "ledgers": null,
  "ledger_ids": [
    "7JRNsKwy2Lw66caxVU7WGC",
    "HLn8oy2eqMUCwjp1Cwdgco"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

coa_template_id
string
required

The ID of the Chart of Accounts Template to be cloned

Query Parameters

expand
enum<string>[] | null

Comma-separated list of expandable paths.

Body

application/json

Response

201
application/json

Successful Response

The response is of type object.