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": "aWQ6MzY=", "input": { "name": "Acme", "countries": [ "Canada" ], "addWarehouses": [ "YWRkV2FyZWhvdXNlczo3NA==" ], "seller": "c2VsbGVyOjMx", "countryAreas": [ { "country": "CA", "countryAreas": [ "countryAreas" ] } ], "removeWarehouses": [ "cmVtb3ZlV2FyZWhvdXNlczo0OA==" ] } }
{ "shippingZoneUpdate": { "shippingErrors": [ { "field": "string", "message": "string", "code": "ALREADY_EXISTS", "warehouses": [ "d2FyZWhvdXNlczoyOA==" ] } ], "shippingZone": { "id": "aWQ6Mzg=", "name": "Acme" } } }