urlRedirectUpdate mutation
Version unstable
Updates a redirect.
Required access
write_online_store_navigation
access scope.
On this page
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 (
UrlRedirect
)The updated redirect.
-
userErrors (
[UrlRedirectUserError!]!
)List of errors that occurred executing the mutation.