Skip to main content
Anchor to metaobjectDefinitionCreate

metaobjectDefinitionCreate

mutation

Requires write_metaobject_definitions access scope.

Creates a metaobject definition that establishes the structure for custom data objects in your store. The definition specifies the fields, data types, and access permissions that all Metaobject entries of this type share.

Use the type field to create a unique namespace for your metaobjects. Prefix the type with $app: to reserve the definition for your app's exclusive use. The definition can include capabilities like publishable status or translation eligibility, to extend how metaobjects integrate with Shopify's features.

Learn more about managing metaobjects.

•MetaobjectDefinitionCreateInput!
required

The input fields for creating a metaobject definition.


Was this section helpful?

Anchor to MetaobjectDefinitionCreatePayload returnsMetaobjectDefinitionCreatePayload returns

Anchor to metaobjectDefinitionmetaobjectDefinition
•MetaobjectDefinition

The created metaobject definition.

•[MetaobjectUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?