--- title: ConsentPolicyError - GraphQL Admin description: The errors encountered while performing mutations on consent policies. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/consentpolicyerror md: https://shopify.dev/docs/api/admin-graphql/latest/objects/consentpolicyerror.md --- # Consent​Policy​Error object The errors encountered while performing mutations on consent policies. ## Fields * code [Consent​Policy​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/ConsentPolicyErrorCode) The error code. * 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 * [consent​Policy​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/consentPolicyUpdate) mutation Update or create consent policies in bulk. *** ## <\~> ConsentPolicyError Mutations ### Mutated by * <\~>[consent​Policy​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/consentPolicyUpdate) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError) interface *** ## ||-ConsentPolicyError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)