Skip to content

Create Template

POST
/api/canvas/templates
curl --request POST \
--url https://example.com/api/canvas/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "", "org_id": "example", "deal_type": "", "asset_type": "", "section_schema": { "additionalProperty": {} }, "section_order": [ "example" ], "is_default": false }'

Create a new document template.

Media type application/json
CreateTemplateRequest
object
name
required
Name
string
>= 1 characters <= 200 characters
description
Description
string
"" <= 1000 characters
org_id
Any of:
string
deal_type
Deal Type
string
"" <= 100 characters
asset_type
Asset Type
string
"" <= 100 characters
section_schema
Section Schema
object
key
additional properties
object
key
additional properties
any
section_order
Section Order
Array<string>
is_default
Is Default
boolean

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}