younifyd
Menu

Create Redirect Import Job

Create Redirects Import Job

POST/storefront/redirects/imex/import

Use it in a workflow

  1. Add a step and choose the BigCommerce Content connector.
  2. Pick the Create Redirect Import Job action (under Redirects).
  3. Fill in the fields below, then reference the result from later steps as {{createRedirectImportJob.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 "multipart/form-data"

Request body

Enter the body as JSON in the step's Body field.

import_filestring (binary)required

A CSV file containing a list of Redirects to be imported. The headers must be defined as follows: `Domain,Old Path,Manual URL/Path,Dynamic Target Type,Dynamic Target ID` Not every line will have a value for every column.

json
{
  "import_file": "Domain,Old Path,Manual URL/Path,Dynamic Target Type,Dynamic Target ID \nstore.example.com,/old-path,/new-manual-path,, \nstore.example.com,/old-product,,Product,12 \nstore.example.com,/old-brand,,Brand,34 \nstore.example.com,/old-category,,Category,56 \nstore.example.com,/old-page,,Page,78 \nstore.example.com,/old-post,,Post,90"
}

Response

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

idstring
json
{
  "id": "ab1c2de3-f4gh-5678-i90j-klm12n345o67"
}

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