Skip to main content
mutation

Requires write_metaobjects access scope.

Updates a Metaobject with new field values, handle, or capabilities. Metaobjects are custom data structures that extend Shopify's data model.

You can modify field values mapped to the metaobject's MetaobjectDefinition, update the handle for a unique identifier, and adjust capabilities like publishing status. When updating the handle, you can optionally create a redirect from the old handle to maintain existing references.

ID!
required

The ID of the metaobject to update.

MetaobjectUpdateInput!
required

Specifies parameters to update on the metaobject.


Was this section helpful?

Anchor to MetaobjectUpdatePayload returnsMetaobjectUpdatePayload returns

Metaobject

The updated metaobject.

[MetaobjectUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?