Updates a new shipping zone.
id
ID of a shipping zone to update.
input
Fields required to update a shipping zone.
Returns ShippingZoneUpdate .
mutation ($id: ID!, $input: ShippingZoneUpdateInput!) { shippingZoneUpdate(id: $id, input: $input) { shippingErrors { field message code warehouses } shippingZone { id name } } }
3
{ "id": "aWQ6Nw==", "input": { "name": "Acme", "countries": [ "Canada" ], "addWarehouses": [ "YWRkV2FyZWhvdXNlczoyMQ==" ], "seller": "c2VsbGVyOjQ4", "countryAreas": [ { "country": "CA", "countryAreas": [ "countryAreas" ] } ], "removeWarehouses": [ "cmVtb3ZlV2FyZWhvdXNlczo5NQ==" ] } }
{ "shippingZoneUpdate": { "shippingErrors": [ { "field": "string", "message": "string", "code": "ALREADY_EXISTS", "warehouses": [ "d2FyZWhvdXNlczo1OQ==" ] } ], "shippingZone": { "id": "aWQ6MjY=", "name": "Acme" } } }