Skip to content
Esc
↑↓navigate↵open⌘Jpreview

v1Redirects

Query redirects with filtering and pagination

QUERYv1Redirects
Arguments
localeString

When set, only redirects for this locale are returned

itemIds[String!]

When set, only redirects linked to these item UUIDs are returned

oldSlugString

When set, only redirects with this source path or slug are returned

newSlugString

When set, only redirects with this target path or slug are returned

redirectTypeRedirectType

When set, only redirects of this type (PRODUCT or PAGE) are returned

pageInt

Page number (1-based, default 1)

perPageInt

Page size (default 100, max 1000)

Returns

Redirect with pagination information

Try it
Server
Bodyapplication/json
Request
curl -X POST 'https://graphql.enad.io/{app_id}/graphql' \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "query V1Redirects($locale: String, $itemIds: [String!], $oldSlug: String, $newSlug: String, $redirectType: RedirectType, $page: Int, $perPage: Int) {\n  v1Redirects(locale: $locale, itemIds: $itemIds, oldSlug: $oldSlug, newSlug: $newSlug, redirectType: $redirectType, page: $page, perPage: $perPage) {\n    redirects {\n      id\n      itemId\n      oldSlug\n      newSlug\n      redirectType\n      createdAt\n      locale\n    }\n    pageInfo {\n      totalPages\n      currentPage\n      hasNextPage\n      hasPreviousPage\n    }\n  }\n}",
  "variables": {
    "locale": "string",
    "itemIds": [
      "string"
    ],
    "oldSlug": "string",
    "newSlug": "string",
    "redirectType": "PRODUCT",
    "page": 0,
    "perPage": 0
  }
}'
Response
{
  "data": {
    "v1Redirects": {
      "redirects": [
        {
          "id": "string",
          "itemId": "string",
          "oldSlug": "string",
          "newSlug": "string",
          "redirectType": "PRODUCT",
          "createdAt": null,
          "locale": "string"
        }
      ],
      "pageInfo": {
        "totalPages": 0,
        "currentPage": 0,
        "hasNextPage": true,
        "hasPreviousPage": true
      }
    }
  }
}