Create Metaobject Definition (Shopify)

Creates a metaobject definition. type, name and a non-empty fieldDefinitions array are required. Each field definition needs key, name and type.

Requires the write_metaobject_definitions scope.

access.storefront is NONE or PUBLIC_READ. access.admin is MERCHANT_READ or MERCHANT_READ_WRITE and is allowed only when type starts with $app:. On a normal type, Shopify answers 400 Admin access can only be specified on metaobject definitions that have an app-reserved type. The response can still show access.admin as PUBLIC_READ_WRITE: that is Shopify's value for a merchant-owned definition.

displayNameKey must be the key of one of the fields. An invalid body answers 422 with ecartapiError: true. A type that already exists answers 400 with Shopify's message.

Deleting this definition later also deletes every entry of the type.

See Shopify metafields and metaobjects.

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

Metaobject definition. type, name and fieldDefinitions are required.

definition
object
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