Anchor to metaobjectUpdatemetaobject
mutationmetaobject Update
Requires 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 ,
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.
Anchor to Arguments
Arguments
- id (ID!)
- metaobject (MetaobjectUpdateInput!)
- •ID!required
The ID of the metaobject to update.
- Anchor to metaobjectmetaobject•Metaobject
Update Input! required Specifies parameters to update on the metaobject.
Was this section helpful?
- metaobject (Metaobject)
- userErrors ([MetaobjectUserError!]!)
- Anchor to metaobjectmetaobject•Metaobject
The updated metaobject.
- Anchor to userErrorsuser•[Metaobject
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?