younifyd
Menu

Create A Page

Create a Page

POST/pages

Use it in a workflow

  1. Add a step and choose the BigCommerce Content connector.
  2. Pick the Create A Page action (under Blog).
  3. Fill in the fields below, then reference the result from later steps as {{createAPage.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.

parent_idinteger

ID of any parent Web page.

typestringrequired

`page`: free-text page `link`: link to another web address `rss_feed`: syndicated content from an RSS feed `contact_form`: When the store's contact form is used.

One ofpagerss_feedcontact_formrawlink

contact_fieldsstring

Where the page’s type is a contact form: object whose members are the fields enabled (in the control panel) for storefront display. Possible members are:`fullname`: full name of the customer submitting the form; `phone`: customer’s phone number, as submitted on the form; `companyname`: customer’s submitted company name; `orderno`: customer’s submitted order number; `rma`: customer’s submitted RMA (Return Merchandise Authorization) number.

emailstring

Where the page’s type is a contact form: email address that receives messages sent via the form.

namestringrequired

Page name, as displayed on the storefront.

urlstring

Relative URL on the storefront for this page.

meta_descriptionstring

Description contained within this page’s `<meta/>` element.

bodystringrequired

HTML or variable that populates this page’s `<body>` element, in default/desktop view. Required in POST if page type is `raw`.

mobile_bodystring

HTML to use for this page's body when viewed in the mobile template (deprecated).

has_mobile_versionboolean

If true, this page has a mobile version.

is_visibleboolean

If true, this page appears in the storefront’s navigation menu.

is_homepageboolean

If true, this page is the storefront’s home page.

meta_titlestring

Text specified for this page’s `<title>` element. (If empty, the value of the name property is used.)

layout_filestring

Layout template for this page. This field is writable only for stores with a Blueprint theme applied.

sort_orderinteger

Order in which this page should display on the storefront. (Lower integers specify earlier display.)

search_keywordsstring

Comma-separated list of keywords that shoppers can use to locate this page when searching the store.

meta_keywordsstring

Comma-separated list of SEO-relevant keywords to include in the page’s `<meta/>` element.

feedstring

If page type is `rss_feed` then this field is visible. Required in POST required for `rss page` type.

linkstring

If page type is `link` this field is returned. Required in POST to create a `link` page.

content_typestring

One ofapplication/jsontext/javascripttext/html

json
{
  "type": "page",
  "name": "Contact Form",
  "body": "<p>We're happy to answer questions or help you with returns.<br />Please fill out the form below if you need assistance.</p>",
  "parent_id": 5,
  "contact_fields": "fullname,companyname,phone,orderno,rma",
  "email": "janedoes@example.com",
  "url": "/contact-us/",
  "meta_description": "string",
  "mobile_body": "0",
  "has_mobile_version": false,
  "is_visible": true,
  "is_homepage": false
}

Response

Returns 200 with a any. Read it in later steps with {{createAPage.response.data.<field>}}.

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