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

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•String

A filter made up of terms, connectives, modifiers, and comparators.

nametypedescriptionacceptable_valuesdefault_valueexample_use
defaultstringFilter by a case-insensitive search of multiple fields
in a document.- query=Bob Norman
- query=title:green hoodie
created_attime
ididFilter by id range.- id:1234
- id:>=1234
- id:<=1234
pathstring
targetstring
You can apply one or more filters to a query. Learn more about [Shopify API
search syntax](https://shopify.dev/api/usage/search-syntax).
•Boolean
Default:false

Reverse the order of the underlying list.

•ID

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

•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.



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?