Method: properties.customMetrics.patch

更新媒体资源上的 CustomMetric。

HTTP 请求

PATCH https://analyticsadmin.googleapis.com/v1alpha/{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