Skip to main content
POST
Publish a template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
project_id
string
required

A kind=template project in your workspace.

slug
string
required

Stable public handle, e.g. stock-montage.

Maximum string length: 80
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
title
string
required
Required string length: 1 - 255
description
string | null
category
string | null
Maximum string length: 64
tags
string[]
priority
integer
default:0

Sorts rows and carousels, highest first.

premium
boolean
default:false
status
enum<string>
default:draft

published makes the template public. Publishing needs every media URL in its composition to sit on the shared CDN (422 template_assets_not_shared) and no webhook_url (422 template_has_webhook).

Available options:
draft,
published
preview_url
string<uri> | null

A finished render of the template.

Required string length: 1 - 2083
family
string | null

Links the size variants of one design.

Maximum string length: 64

Response

Successful Response

A gallery listing as stored.

id
string
required

Listing id.

project_id
string
required

The listed template project.

slug
string
required
title
string
required
priority
integer
required
premium
boolean
required
status
enum<string>
required
Available options:
draft,
published
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
category
string | null
tags
string[]
preview_url
string | null
published_at
string<date-time> | null
family
string | null