Anchor to section titled 'undefined'

urlRedirectImportCreate
mutation

Requires write_online_store_navigation access scope.

Creates a UrlRedirectImport object.

After creating the UrlRedirectImport object, the UrlRedirectImport request can be performed using the urlRedirectImportSubmit mutation.


The staged upload URL of the CSV file. You can download a sample URL redirect CSV file.


Was this section helpful?

The created URLRedirectImport object.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation urlRedirectImportCreate($url: URL!) {
  urlRedirectImportCreate(url: $url) {
    urlRedirectImport {
      # UrlRedirectImport fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "url": "https://example.myshopify.com"
}