younifyd
Menu

Preview Widget

Render a Widget Template

POST/content/widget-templates/{uuid}/preview

Use it in a workflow

  1. Add a step and choose the BigCommerce Content connector.
  2. Pick the Preview Widget action (under Widgets).
  3. Fill in the fields below, then reference the result from later steps as {{previewWidget.response.data}}.

Request

Path parameters

uuidstringrequired

The identifier for a specific widget.

uuidstring (uuid)required

The identifier for a specific template.

Request body

Enter the body as JSON in the step's Body field.

widget_configurationobject (json)

The JSON data that populates the template.

json
{
  "widget_configuration": {}
}

Response

Returns 200 with an object. Read it in later steps with {{previewWidget.response.data.<field>}}.

dataobject
htmlstring (html)

The HTML render of the widget template.

json
{
  "data": {
    "html": "string"
  }
}

Need more? See the BigCommerce Content guide for connection setup and behaviour shared by every action.

Was this page helpful?