younifyd
Menu

urlRedirectBulkDeleteByIds

Asynchronously delete URLRedirect objects in bulk by IDs. Learn more about URLRedirect objects.

Use it in a workflow

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

Query

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

graphql
mutation UrlRedirectBulkDeleteByIds($ids: [ID!]!) {
  urlRedirectBulkDeleteByIds(ids: $ids) {
    job {
      done
      id
      query {
        appDiscountTypes
        availableBackupRegions
        availableCarrierServices
        availableLocales
        backupRegion
        businessEntities
        catalogOperations
        collectionConditionMetafieldDefinitions
        collectionRulesConditions
        consentPolicyRegions
        currentAppInstallation
        currentStaffMember
        deliveryPromiseSettings
        financeAppAccessPolicy
        financeKycInformation
        fulfillmentConstraintRules
        giftCardConfiguration
        inventoryProperties
        locationsAvailableForDeliveryProfiles
        metafieldDefinitionTypes
        onlineStore
        pendingOrdersCount
        primaryMarket
        privacySettings
        publicApiVersions
        serverPixel
        shop
        shopBillingPreferences
        shopifyPaymentsAccount
        storeCreditConfiguration
        taxonomy
      }
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

idsarray<string>required

A list of [`URLRedirect`]( https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect ) object IDs to delete.

json
{
  "ids": [
    "string"
  ]
}

Response

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

jobobject
doneboolean
idstring
queryobject31 fields
userErrorsarray<object>
codeobject
fieldobject
messageobject

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

urlRedirectBulkDeleteByIds — Shopify — Documentation