--- title: CustomerEmailMarketingConsentUpdateInput - GraphQL Admin description: >- The input fields for the email consent information to update for a given customer ID. api_version: 2024-10 api_name: admin type: input_object api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/CustomerEmailMarketingConsentUpdateInput md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/CustomerEmailMarketingConsentUpdateInput.txt --- # Customer​Email​Marketing​Consent​Update​Input input\_object The input fields for the email consent information to update for a given customer ID. ## Fields * customer​Id [ID!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) non-null The ID of the customer for which to update the email marketing consent information. The customer must have a unique email address associated to the record. If not, add the email address using the `customerUpdate` mutation first. * email​Marketing​Consent [Customer​Email​Marketing​Consent​Input!](https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/CustomerEmailMarketingConsentInput) required The marketing consent information when the customer consented to receiving marketing material by email. *** ## Mutations using this input * [customer​Email​Marketing​Consent​Update.​input](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/customerEmailMarketingConsentUpdate#argument-input) MUTATION *** ## Map ### Mutations using this input * <\~>[customer​Email​Marketing​Consent​Update.input](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/customerEmailMarketingConsentUpdate#argument-input)