Skip to main content
POST
Publish a template

Authorizations

Authorization
string
header
required

Your API key, ps_live_… or ps_test_….

Path Parameters

template
string
required

The template slug, or its ID prefixed tpl_.

Body

application/json
title
string

A short note on what changed, shown in the history.

Example:

"Brand color on the code"

Response

200 - application/json

TemplateResource

object
string
required
Allowed value: "template"
id
string
required
name
string
required
slug
string
required
aliases
object
required
subject
string
required

Le brouillon : ce que publish publiera.

from
string | null
required
html
string
required
text
string | null
required
variables
object[]
required
published_version
integer | null
required
has_unpublished_changes
string
required
created_at
string
required
updated_at
string
required