Creating a redirect

To create a redirect using the GraphQL API, you will need the following:

The example below creates a redirect.

mutation CreateWebsiteRedirect($input: CreateWebsiteRedirectMutationInput!) {
  createWebsiteRedirect(input: $input) {
    id
    from
    to
    code
  }
}

Last updated