younifyd
Menu

Upsert Redirects

Upsert Redirects

PUT/storefront/redirects

Use it in a workflow

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

Response

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

dataarray<object>
idinteger
site_idinteger
from_pathstring
toobject3 fields
to_urlstring (uri)

Full destination URL for the redirect. Must be explicitly included via URL parameter.

metaobject
paginationobject6 fields
json
{
  "data": [
    {
      "id": 0,
      "site_id": 0,
      "from_path": "/old-url",
      "to": {
        "type": "product",
        "entity_id": 0,
        "url": "/new-url/"
      },
      "to_url": "https://store-domain.com/new-url"
    }
  ],
  "meta": {
    "pagination": {
      "total": 246,
      "count": 5,
      "per_page": 5,
      "current_page": 1,
      "total_pages": 50,
      "links": {
        "next": "?limit=5&page=2",
        "current": "?limit=5&page=1"
      }
    }
  }
}

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

Was this page helpful?