Replace a content type's name
PUT
/ admin/ v1/ stores/ {store_id}/ metaobject-definitions/ {definition_id}- settings:write
Replace a content type's name, fields and settings. A field keeps its type once created.
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 content type's ID, like
mobdef_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestringrequiredfieldsarray of objectsrequired1–40 fields. A field keeps its type once created.
descriptionstring · or nulldisplay_fieldstring · or nullstorefrontboolean
Returns
200 Updated.
Errors
- 404
not_foundNo such content type. - 422
validation_failedValidation failed (type_lockedwhen a field's type changes).