Skip to main content
object

Requires read_online_store_navigation access scope.

The URL redirect for the online store.

ID!
non-null

The ID of the URL redirect.

String!
non-null

The old path to be redirected from. When the user visits this path, they will be redirected to the target location.

String!
non-null

The target location where the user will be redirected to.


Was this section helpful?

query

Returns a UrlRedirect resource by ID.

Arguments

ID!
required

The ID of the UrlRedirect to return.


query

A list of redirects for a shop.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

UrlRedirectSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
string
ID

The ID of a saved search. The search’s query string is used as the query argument.



Was this section helpful?

mutation

Creates a UrlRedirect object.

Arguments

UrlRedirectInput!
required

The fields to use when creating the redirect.


mutation

Updates a URL redirect.

Arguments

ID!
required

The ID of the URL redirect to update.

UrlRedirectInput!
required

The input fields required to update the URL redirect.



Was this section helpful?

interface

Was this section helpful?