Skip to main content
mutation

Requires write_metaobjects access scope.

Creates or updates a Metaobject based on its handle. If a metaobject with the specified handle exists, the mutation updates it with the provided field values. If no matching metaobject exists, the mutation creates a new one.

The handle serves as a unique identifier within a metaobject type. Field values map to the MetaobjectDefinition's field keys and overwrite existing values during updates.

MetaobjectHandleInput!
required

The identifier of the metaobject to upsert.

MetaobjectUpsertInput!
required

The parameters to upsert the metaobject.


Was this section helpful?

Anchor to MetaobjectUpsertPayload returnsMetaobjectUpsertPayload returns

Metaobject

The created or updated metaobject.

[MetaobjectUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?