younifyd
Menu

Create or update redirects

create or update redirects

PUT/shops/{shopKey}/redirects/bulk

Use it in a workflow

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

Request

Path parameters

shopKeystringrequired

The shop key.

Response

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

entitiesarray<object>
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
errorobject2 fields
createdAtstring (date-time)

Timestamp when the redirect is created

updatedAtstring (date-time)

Timestamp when the redirect is updated

json
{
  "entities": [
    {
      "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.