younifyd
Menu

Get A Redirect URL

Get a Redirect

GET/redirects/{id}

Use it in a workflow

  1. Add a step and choose the BigCommerce Content connector.
  2. Pick the Get A Redirect URL action (under Blog).
  3. Fill in the fields below, then reference the result from later steps as {{getARedirectUrl.response.data}}.

Request

Path parameters

idintegerrequired

ID of the redirect URL.

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"

Response

Returns 200 with an object. Read it in later steps with {{getARedirectUrl.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.

Was this page helpful?