younifyd
Menu

urlRedirectImport

Fetch a single URL redirect import by its ID.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the urlRedirectImport action (under Url).
  3. Fill in the fields below, then reference the result from later steps as {{urlredirectimport.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query UrlRedirectImport($id: ID!) {
  urlRedirectImport(id: $id) {
    count
    createdCount
    failedCount
    finished
    finishedAt
    id
    previewRedirects {
      path
      target
    }
    updatedCount
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the `UrlRedirectImport` to return.

json
{
  "id": "string"
}

Response

Read the result with {{urlredirectimport.response.data.data.urlRedirectImport}}. If the API returns errors, the step fails and they are at {{urlredirectimport.response.data.errors}}.

countnumber
createdCountnumber
failedCountnumber
finishedboolean
finishedAtstring
idstring
previewRedirectsarray<object>
pathobject
targetobject
updatedCountnumber

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

urlRedirectImport — Shopify — Documentation