put
https://api.ecartapi.com/api/v2/metaobjects/definitions/
Updates a definition. Send at least one of name, description, displayNameKey, access, createFieldDefinitions, updateFieldDefinitions or deleteFieldDefinitions. type cannot be changed.
Requires the write_metaobject_definitions scope. Numeric id. A GID in this path answers 422 with ecartapiError: true. Shopify is not called.
The three field lists become Shopify field operations:
| List | Effect |
|---|---|
createFieldDefinitions | Add a field. key, name and type are required. |
updateFieldDefinitions | Change the name, description, required flag or validations of an existing field. type cannot change. |
deleteFieldDefinitions | Remove fields by key. |
The example renames the definition, renames body, adds product and removes old_field.
access.admin is still limited to $app: types. An empty body answers 422 with ecartapiError: true.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…