younifyd
Menu

Create A Redirect

Create a Redirect

POST/redirects

Use it in a workflow

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

idinteger

Numeric ID of the redirect.

pathstringrequired

The path from which to redirect.

forwardobjectrequired
typestring

The type of redirect. If it is a `manual` redirect then type will always be manual. Dynamic redirects will have the type of the page. Such as product or category.

refinteger

Reference of the redirect. Dynamic redirects will have the category or product number. Manual redirects will have the url that is being directed to.

urlstring

URL of the redirect. READ-ONLY

json
{
  "path": "/smith-journal-13/",
  "forward": {
    "type": "product",
    "ref": 111
  },
  "id": 1,
  "url": "http://store-url.mybigcommerce.com/towels/bath-towels/hand-towels/"
}

Response

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

idinteger

Numeric ID of the redirect.

pathstring

The path from which to redirect.

forwardobject
typestring

The type of redirect. If it is a `manual` redirect then type will always be manual. Dynamic redirects will have the type of the page. Such as product or category.

refinteger

Reference of the redirect. Dynamic redirects will have the category or product number. Manual redirects will have the url that is being directed to.

urlstring

URL of the redirect. READ-ONLY

json
{
  "path": "/smith-journal-13/",
  "forward": {
    "type": "product",
    "ref": 111
  },
  "id": 1,
  "url": "http://store-url.mybigcommerce.com/towels/bath-towels/hand-towels/"
}

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