Update a shipping rate (merged-row validation)
PUT
/admin/v1/shipping/rates/{id}
const url = 'https://your-store.example.com/admin/v1/shipping/rates/example';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"zoneId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","type":"flat","amount":1,"currency":"example","freeOverAmount":1,"weightMinGrams":1,"weightMaxGrams":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://your-store.example.com/admin/v1/shipping/rates/example \ --header 'Content-Type: application/json' \ --data '{ "zoneId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "type": "flat", "amount": 1, "currency": "example", "freeOverAmount": 1, "weightMinGrams": 1, "weightMaxGrams": 1 }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string