younifyd
Menu

Create Widget

Create a Widget

POST/content/widgets

Use it in a workflow

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

Request

Headers

Acceptstringrequired

The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body.

Default "application/json"

Content-Typestringrequired

The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.

Default "application/json"

Request body

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

namestringrequired

User friendly name.

descriptionstring

The user-friendly description.

widget_configurationobject (json)

The JSON data that populates the template.

widget_template_uuidstringrequired

The widget template UUID.

channel_idinteger

The ID of the channel on which to create this widget. Defaults to the first channel created on the store.

json
{
  "name": "string",
  "widget_template_uuid": "string",
  "description": "string",
  "widget_configuration": {},
  "channel_id": 0
}

Response

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

dataany
metaobject

Response metadata.

json
{
  "data": null,
  "meta": {}
}

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

Create Widget — BigCommerce Content — Documentation