Anchor to urlRedirectCreateurl
urlRedirectCreate
mutation
Requires access scope.
Anchor to Arguments
Arguments
- Anchor to urlRedirecturl•
Redirect UrlRedirect requiredInput! The fields to use when creating the redirect.
Was this section helpful?
Anchor to UrlRedirectCreatePayload returnsUrlRedirectCreatePayload returns
- Anchor to urlRedirecturl•
Redirect The created redirect.
- Anchor to userErrorsuser•
Errors [UrlRedirect non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation urlRedirectCreate($urlRedirect: UrlRedirectInput!) {
urlRedirectCreate(urlRedirect: $urlRedirect) {
urlRedirect {
# UrlRedirect fields
}
userErrors {
field
message
}
}
}
Input
{
"urlRedirect": {
"path": "<your-path>",
"target": "<your-target>"
}
}
{
"urlRedirect": {
"path": "<your-path>",
"target": "<your-target>"
}
}
input UrlRedirectInput {
path: String
target: String
}