Method: properties.customMetrics.patch

更新媒体资源的 CustomMetric。

HTTP 请求

PATCH https://analyticsadmin.googleapis.com/v1beta/{customMetric.name=properties/*/customMetrics/*}

网址采用 gRPC 转码语法。

路径参数

参数
customMetric.name

string

仅供输出。此 CustomMetric 资源的资源名称。格式:properties/{property}/customMetrics/{customMetric}

查询参数

参数
updateMask

string (FieldMask format)

必需。要更新的字段列表。系统不会更新省略的字段。如需替换整个实体,请使用包含字符串“*”的路径匹配所有字段。

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

请求正文

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

响应正文

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

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/analytics.edit