younifyd
Menu

Get redirects based on the given filters

Get redirects based on the given filters.

GET/shops/{shopKey}/redirects

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get redirects based on the given filters action (under Redirects).
  3. Fill in the fields below, then reference the result from later steps as {{getRedirectsBasedOnTheGivenFilters.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

Query parameters

witharray<array<string>>

comma separated list of relations that should be included in the response

filters[search]string
filters[id]array<integer>

Comma-separated list of IDs of entities that should be used for filtering.

sortstring

One ofidsourcetargetcreatedAtupdatedAtstatusCodepriorityisRegexDefault "createdAt"

sortDirstring

Sort ascending or descending

One ofascdescDefault "desc"

limitinteger

maximum number of entities in result.

Default 100

cursorstring

Valid cursor used for pagination.

Response

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

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

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"
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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