younifyd
Menu

backupRegionUpdate

Update the backup region that is used when we have no better signal of what region a buyer is in.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the backupRegionUpdate action (under Backup).
  3. Fill in the fields below, then reference the result from later steps as {{backupregionupdate.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 BackupRegionUpdate($region: BackupRegionUpdateInput) {
  backupRegionUpdate(region: $region) {
    backupRegion {
      id
      name
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

regionobject

Optional input representing the region to be updated. If not provided, the existing regions remain unchanged.

countryCodestringrequired

One ofAFAXALDZADAOAIAGARAMAWACAUATAZBSBHBDBBBYBEBZBJBMBTBOBABWBVBRIOBNBGBFBIKHCACVBQKY

json
{
  "region": {
    "countryCode": "AF"
  }
}

Response

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

backupRegionobject
idstring
namestring
userErrorsarray<object>
codeobject
fieldobject
messageobject

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

Was this page helpful?
backupRegionUpdate — Shopify — Documentation