--- title: MetaobjectUserError - GraphQL Admin description: Defines errors encountered while managing metaobject resources. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/metaobjectusererror md: https://shopify.dev/docs/api/admin-graphql/latest/objects/metaobjectusererror.md --- # Metaobject​User​Error object Defines errors encountered while managing metaobject resources. ## Fields * code [Metaobject​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetaobjectUserErrorCode) The error code. * element​Index [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int) The index of the failing list element in an array. * element​Key [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The key of the failing object element. * field [\[String!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [metaobject​Bulk​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectBulkDelete) mutation Asynchronously delete metaobjects and their associated metafields in bulk. * [metaobject​Create](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectCreate) mutation Creates a new metaobject. * [metaobject​Definition​Create](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDefinitionCreate) mutation Creates a new metaobject definition. * [metaobject​Definition​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDefinitionDelete) mutation Deletes the specified metaobject definition. Also deletes all related metafield definitions, metaobjects, and metafields asynchronously. * [metaobject​Definition​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDefinitionUpdate) mutation Updates a metaobject definition with new settings and metafield definitions. * [metaobject​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDelete) mutation Deletes the specified metaobject and its associated metafields. * [metaobject​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectUpdate) mutation Updates an existing metaobject. * [metaobject​Upsert](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectUpsert) mutation Retrieves a metaobject by handle, then updates it with the provided input values. If no matching metaobject is found, a new metaobject is created with the provided input values. * [standard​Metaobject​Definition​Enable](https://shopify.dev/docs/api/admin-graphql/latest/mutations/standardMetaobjectDefinitionEnable) mutation Enables the specified standard metaobject definition from its template. *** ## <\~> MetaobjectUserError Mutations ### Mutated by * <\~>[metaobject​Bulk​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectBulkDelete) * <\~>[metaobject​Create](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectCreate) * <\~>[metaobject​Definition​Create](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDefinitionCreate) * <\~>[metaobject​Definition​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDefinitionDelete) * <\~>[metaobject​Definition​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDefinitionUpdate) * <\~>[metaobject​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectDelete) * <\~>[metaobject​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectUpdate) * <\~>[metaobject​Upsert](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metaobjectUpsert) * <\~>[standard​Metaobject​Definition​Enable](https://shopify.dev/docs/api/admin-graphql/latest/mutations/standardMetaobjectDefinitionEnable) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError) interface *** ## ||-MetaobjectUserError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)