Skip to main content
PATCH
Update a letter template

Authorizations

Authorization
string
header
required

Dairo API key, e.g. dairo_test_... or dairo_live_...

Path Parameters

id
string
required

Body

application/json

Partial update. Provide at least one of name, html, variables, or status.

name
string
html
string
variables

Declared template variables: a JSON array of placeholder names or an object. Defaults to [].

status
enum<string>
Available options:
active,
archived

Response

Success

object
enum<string>
required
Available options:
letter_template
id
string
required
name
string
required
status
enum<string>
required
Available options:
active,
archived
html
string

The branded letter HTML with {{placeholders}} and a blank recipient address window. Omitted from list items.

variables

Declared template variables: a JSON array of placeholder names or an object. Defaults to [].

createdAt
string<date-time> | null
updatedAt
string<date-time> | null