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
- Add a step and choose the Shopify connector.
- Pick the backupRegionUpdate action (under Backup).
- 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.
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.
{
"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}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?