Skip to navigation

Plan: Stencil Developer

Lesson 20 of 23 · 15 min

In this lab you will

  • Place a Widget using Postman

Prerequisites

  • BigCommerce sandbox store
  • API credentials for the store
  • Postman installed
  • Widgets API collection

Place a Widget

Place a widget using postman

  1. Navigate to the ‘Widgets and Page Builder’ folder in the ‘Widgets API Labs’ collection in the ‘Collections’ pane on the left side of the Postman window
  2. Click the ‘Create Placement’ post request
  3. Select the ‘Body’ tab in the main content window in Postman
  4. Confirm the content in the ‘Body’ tab is the following:
{
"template_file": "pages/home",
"entity_id": "",
"region":"home-top",
"sort_order": 1,
"widget_uuid": "{{widget_uuid}}",
"status": "active"
}
  1. Confirm that the widget_uuid environment variable contains the Widget UUID from the previous lab. The request fills it in automatically
  2. Click the ‘Send’ button at the top right of the Postman window

Open your store’s homepage, and you should now see your widget, with its heading, image, and text.