--- title: MetafieldDefinitionUpdateUserError - GraphQL Admin description: An error that occurs during the execution of `MetafieldDefinitionUpdate`. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/metafielddefinitionupdateusererror md: https://shopify.dev/docs/api/admin-graphql/latest/objects/metafielddefinitionupdateusererror.md --- # Metafield​Definition​Update​User​Error object An error that occurs during the execution of `MetafieldDefinitionUpdate`. ## Fields * code [Metafield​Definition​Update​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldDefinitionUpdateUserErrorCode) The error code. * element​Index [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int) The index of the array element that's causing the error. * 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 * [metafield​Definition​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionUpdate) mutation Updates a metafield definition. *** ## <\~> MetafieldDefinitionUpdateUserError Mutations ### Mutated by * <\~>[metafield​Definition​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionUpdate) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError) interface *** ## ||-MetafieldDefinitionUpdateUserError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)