Update Metaobject Definition (Shopify)

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:

ListEffect
createFieldDefinitionsAdd a field. key, name and type are required.
updateFieldDefinitionsChange the name, description, required flag or validations of an existing field. type cannot change.
deleteFieldDefinitionsRemove 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.

See Shopify metafields and metaobjects.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Numeric id. A GID in this path answers 422 with ecartapiError: true. Shopify is not called.

Body Params

Changes to one definition. Send at least one property. type cannot be changed.

definition
object
required

At least one property is required.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json