Skip to main content
POST
Add a template

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Idempotency-Key
string
required

A retry with the same key and body returns the first response

Required string length: 1 - 255

Path Parameters

id
string
required

A tpl_… ID or the template's key

Body

application/json
settings
object

Values for the template's settings, by key. Leave one out for its default. Text is 1 to 40 characters, a number is a whole number from 1 to 1,000,000

Response

Add a template

template
string
required

A template ID, starting with tpl_.

Pattern: ^tpl_[0-7][0-9a-hjkmnp-tv-z]{25}$
installed_at
string<date-time>
required

When it was added, as an instant

units
object[]
required

Its units, added or reused

rules
object[]
required

Drafts: a person takes them live. A rule another template already added, with exactly the same definition, is listed as it is and may be live

views
object[]
required

Its views, added or reused

dashboards
object[]
required

The template's dashboard when it brought new views or Home was empty (placed on Home when the project had no Home dashboard yet)