Skip to main content
mutation

Requires write_metaobjects access scope.

Creates a metaobject entry based on an existing MetaobjectDefinition. The type must match a definition that already exists in the shop.

Specify field values using key-value pairs that correspond to the field definitions. The mutation generates a unique handle automatically if you don't provide one. You can also configure capabilities like publishable status to control the metaobject's visibility across channels.

Learn more about managing metaobjects.

MetaobjectCreateInput!
required

The parameters for the metaobject to create.


Was this section helpful?

Anchor to MetaobjectCreatePayload returnsMetaobjectCreatePayload returns

Metaobject

The created metaobject.

[MetaobjectUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?