Update definition
PATCH
/ admin/ v1/ stores/ {store_id}/ metafield-definitions/ {definition_id}Change a definition's name, description, rules or storefront access.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.definition_idstringrequiredThe definition's ID, like
mfdef_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestring · or nulldescriptionstring · or nullvalidationsobject · or nullReplaces every rule.
storefrontboolean · or nullshopper_editableboolean · or nullWhether the signed-in shopper sets it. Hiding the field from storefronts stops it too.
Returns
200 Updated.
Errors
- 404
not_foundNo such definition. - 422
validation_failedValidation failed.