Skip to main content
POST
Add a country template to a resource

Authorizations

Authorization
string
header
required

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

Path Parameters

theme_id
integer
required

Company-owned theme the country templates belong to. Any of the company's themes, not only the active one.

Required range: x >= 1

Body

application/json
resource_type
enum<string>
required

Class of a resource that holds templates.

Available options:
Product,
Page,
Medium,
EnrollmentPack,
Library,
Collection,
Category,
Post
resource_id
integer
required

Id of the company's resource that receives the country template.

Required range: x >= 1
template_id
integer
required

Id of a template of the theme, tagged with countries.

Required range: x >= 1

Response

The country template the resource now holds.

country_template
object
required
status
integer
required
meta
object
required