---
title: UserError - Shop Users API
description: Represents an error in the input of a mutation.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-users/latest/objects/UserError
  md: https://shopify.dev/docs/api/shop-users/latest/objects/UserError.md
---

# User​Error

object

Represents an error in the input of a mutation.

## Fields

* field

  [\[String!\]!](https://shopify.dev/docs/api/shop-users/latest/scalars/String)

  non-null

  Path to input field which caused the error.

* message

  [String!](https://shopify.dev/docs/api/shop-users/latest/scalars/String)

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [metafield​Delete](https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldDelete)

  mutation

  Remove a Metafield corresponding to a definition from a user.

  * identifier

    [Custom​Data​Key​Pair​Input!](https://shopify.dev/docs/api/shop-users/latest/input-objects/CustomDataKeyPairInput)

    required

    ### Arguments

    Key and namespace pair that together form the path to the definition. Key is required, Namespace defaults to the Client's implicit, reserved namespace if not provided

  ***

* [metafields​Set](https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldsSet)

  mutation

  Set or Update a Metafield on a resource.

  * metafields

    [\[Metafield​Set​Input!\]!](https://shopify.dev/docs/api/shop-users/latest/input-objects/MetafieldSetInput)

    required

    ### Arguments

  ***

***

## UserError Mutations

### Mutated by

* [metafield​Delete](https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldDelete)
* [metafields​Set](https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldsSet)