---
title: "CustomerSmsMarketingConsentUpdateInput"
description: "用于更新客户同意或拒绝接收短信营销资讯"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/customer-sms-marketing-consent-update-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/customer-sms-marketing-consent-update-input.md'
---
# CustomerSmsMarketingConsentUpdateInput

用于更新客户同意或拒绝接收短信营销资讯

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

## Type Signature

`CustomerSmsMarketingConsentUpdateInput`

## Input Fields

* `smsMarketingConsent`

  [CustomerSmsMarketingConsentInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/customer-sms-marketing-consent-input.md)

  客户同意或拒绝接收短信营销资讯

* `customerId`

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

  客户ID

## Schema Definition

```graphql
input CustomerSmsMarketingConsentUpdateInput { 
	smsMarketingConsent: CustomerSmsMarketingConsentInput
	customerId: ID 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/mutations/customer-sms-marketing-consent-update.md).customerSmsMarketingConsentUpdate

  更新客户的短信营销同意信息

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

