BigCommerce · Schema

widgetTemplate_Post

E-CommerceRetailCatalogOrdersCheckoutPaymentsSaaS

Properties

Name Type Description
name string User-friendly name.
schema object
template string Handlebars HTML content. Also has access to Stencil Paper helpers.
storefront_api_query string The GraphQL Storefront API query that provides widget data.
channel_id integer The id of the channel on which to create this template. Defaults to the first channel created on the store.
View JSON Schema on GitHub

JSON Schema

bigcommerce-widgettemplate-post-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/widgetTemplate_Post",
  "title": "widgetTemplate_Post",
  "type": "object",
  "description": "",
  "x-internal": false,
  "properties": {
    "name": {
      "type": "string",
      "description": "User-friendly name."
    },
    "schema": {
      "$ref": "#/components/schemas/widgetSchema"
    },
    "template": {
      "type": "string",
      "description": "Handlebars HTML content. Also has access to Stencil Paper helpers.",
      "format": "html"
    },
    "storefront_api_query": {
      "type": "string",
      "description": "The GraphQL Storefront API query that provides widget data."
    },
    "channel_id": {
      "type": "integer",
      "description": "The id of the channel on which to create this template. Defaults to the first channel created on the store."
    }
  },
  "required": [
    "name",
    "template"
  ],
  "x-examples": {
    "example-1": {
      "name": "string",
      "schema": [
        "tab"
      ],
      "template": "string",
      "storefront_api_query": "string",
      "channel_id": 0
    }
  }
}