post

/content/widget-templates

Creates a Widget Template.

Note: There is a limit of 100 custom widget templates per store.

Required Fields

  • name
  • template

Authorization

apiKey - X-Auth-Client
apiKey - X-Auth-Token

Request Parameters

2 Headers

Request Body

1 Example
Schema
object
name
string

User friendly name.

required
schema
array[anyOf]

The schema for the widget’s merchant-facing UI. For more information, see Page Builder Overview

template
string

Handlebars HTML content. Also has access to Stencil Paper helpers.

1 validation + required

Responses

1 Example
Schema
object
data
object
meta
object

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
2 variables not set
store_hash
X-Auth-Client
X-Auth-Token