analytics.management.custom Metrics.patch

PATCH {{baseUrl}}/management/accounts/:accountId/webproperties/:webPropertyId/customMetrics/:customMetricId?ignoreCustomDataSourceLinks=<boolean>&alt=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&userIp=<string>

Updates an existing custom metric. This method supports patch semantics.

Request Params

KeyDatatypeRequiredDescription
ignoreCustomDataSourceLinksstringForce the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

Request Body

{"accountId"=>"<string>", "active"=>"<boolean>", "id"=>"<string>", "max_value"=>"<string>", "min_value"=>"<string>", "name"=>"<string>", "parentLink"=>{"href"=>"<string>", "type"=>"analytics#webproperty"}, "scope"=>"<string>", "type"=>"<string>", "webPropertyId"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;accountId&quot;:&quot;\u003cstring\u003e&quot;,&quot;active&quot;:&quot;\u003cboolean\u003e&quot;,&quot;created&quot;:&quot;1957-12-12T23:34:50.176Z&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;index&quot;:-27884243,&quot;kind&quot;:&quot;analytics#customMetric&quot;,&quot;max_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;min_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;parentLink&quot;:{&quot;href&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;analytics#webproperty&quot;},&quot;scope&quot;:&quot;\u003cstring\u003e&quot;,&quot;selfLink&quot;:&quot;laborum labore enim ex amet&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;updated&quot;:&quot;1975-09-12T02:47:05.399Z&quot;,&quot;webPropertyId&quot;:&quot;\u003cstring\u003e&quot;}