Method: accountTypes.accounts.userLists.patch

更新 UserList。

授权标头:

此方法支持以下可选标头,用于定义 API 如何授权对请求的访问权限:

  • login-account:(可选)凭据的 Google 账号是用户的账号的资源名称。如果未设置,则默认为请求的账号。格式:accountTypes/{loginAccountType}/accounts/{loginAccountId}
  • linked-account:(可选)与 login-account 建立了产品关联的账号的资源名称。格式:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}

HTTP 请求

PATCH https://datamanager.googleapis.com/v1/{userList.name=accountTypes/*/accounts/*/userLists/*}

网址采用 gRPC 转码语法。

路径参数

参数
userList.name

string

标识符。用户列表的资源名称。格式:accountTypes/{accountType}/accounts/{account}/userLists/{userList}

查询参数

参数
updateMask

string (FieldMask format)

可选。要更新的字段列表。

这是完全限定字段名称的逗号分隔列表。示例:"user.displayName,photo"

validateOnly

boolean

可选。如果为 true,则验证请求,但不执行请求。

请求正文

请求正文包含一个 UserList 实例。

响应正文

如果成功,则响应正文包含一个 UserList 实例。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/datamanager