Skip to main content
POST
Publish a new immutable template version

Authorizations

Authorization
string
header
required

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

Path Parameters

idOrSlug
string
required

Template UUID or slug.

Body

application/json
source
string
required

React Email TSX source for the new version.

subject
string
variables
object

JSON-Schema-lite variable contract: a flat map of variable name to declaration.

promote
boolean

Advance currentVersion to this version. Defaults to true.

notes
string

Response

Success

template
object
required
version
object
required
warnings
string[]
required