younifyd
Menu

Create a redirect

Create a redirect.

POST/shops/{shopKey}/redirects

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create a redirect action (under Redirects).
  3. Fill in the fields below, then reference the result from later steps as {{createARedirect.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

Response

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

idinteger

id of the redirect

sourcestring

url of the source

targetstring

url of the target

statusCodeinteger

status of the redirect

isRegexboolean
parentobject

Circular reference: #/components/schemas/Redirect

priorityinteger
errorobject
errorKeystringrequired

A key that describes the occurred error.

messagestringrequired

Some human readable description of the error.

createdAtstring (date-time)

Timestamp when the redirect is created

updatedAtstring (date-time)

Timestamp when the redirect is updated

json
{
  "id": 83070,
  "source": "https://forceful-poem.net/",
  "target": "https://extra-small-mouser.net/",
  "statusCode": 302,
  "isRegex": false,
  "parent": {},
  "priority": 700,
  "error": {
    "errorKey": "string",
    "message": "string"
  },
  "createdAt": "2023-05-10T10:00:00+00:00",
  "updatedAt": "2023-05-11T10:00:00+00:00"
}

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

Create a redirect — SCAYLE Admin — Documentation