urlRedirectCreate mutation

Version unstable

Creates a redirect.

Required access

write_online_store_navigation access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
urlRedirect ( UrlRedirectInput! ) required

The fields to use when creating the redirect.

UrlRedirectInput fields

  • path (String)

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

  • target (String)

    The target location where the user will be redirected.

Return fields

Version 2021-10 (Release candidate)

Creates a redirect.

Required access

write_online_store_navigation access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
urlRedirect ( UrlRedirectInput! ) required

The fields to use when creating the redirect.

UrlRedirectInput fields

  • path (String)

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

  • target (String)

    The target location where the user will be redirected.

Return fields