urlRedirectUpdate mutation

Version unstable

Updates 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
id ( ID )

The ID of the redirect to update.

urlRedirect ( UrlRedirectInput! ) required

The fields to use when updating 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)

Updates 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
id ( ID )

The ID of the redirect to update.

urlRedirect ( UrlRedirectInput! ) required

The fields to use when updating 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

  • urlRedirect (