---
title: "CustomerEmailMarketingConsentUpdateInput"
description: "Used by customers to agree/opt emails to receive marketing information"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-email-marketing-consent-update-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-email-marketing-consent-update-input.md'
---
# CustomerEmailMarketingConsentUpdateInput

Used by customers to agree/opt emails to receive marketing information

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`CustomerEmailMarketingConsentUpdateInput`

## Input Fields

* `emailMarketingConsent`

  [CustomerEmailMarketingConsentInput](https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-email-marketing-consent-input.md)

  Email subscription information

* `customerId`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Customer ID

## Schema Definition

```graphql
input CustomerEmailMarketingConsentUpdateInput { 
	emailMarketingConsent: CustomerEmailMarketingConsentInput
	customerId: ID 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/customers/mutations/customer-email-marketing-consent-update.md).customerEmailMarketingConsentUpdate

  更新客户的电子邮件营销信息

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

