put

/content/widget-templates/{uuid}

Updates a Widget Template.

Authorization

apiKey - X-Auth-Token

Request Parameters

1 Path Parameter
2 Headers

Request Body

1 Example
Schema
object
name
string

The user-friendly name.

schema
array[anyOf]

The schema for the widget’s merchant-facing UI. For more information on the available schema settings, see Widget UI Schema.

template
string

The widget template HTML. Supports Handlebars and Paper helpers.

1 validation
storefront_api_query
string

The GraphQL Storefront API query that provides widget data.

create_new_version
boolean

Can be added to create a new widget template version instead of updating the current one.

Responses

1 Example
Schema
object
data
object
meta
object

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
1 path param not set
uuid
$$.env
1 variable not set
store_hash
X-Auth-Token