Update a tag configuration

PATCH {{baseUrl}}/api/v2/metrics/:metric_name/tags

Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations of a count, rate, or gauge metric. Can only be used with application keys from users with the Manage Tags for Metrics permission.

Request Body

{"data"=>{"id"=>"<string>", "type"=>"manage_tags", "attributes"=>{"aggregations"=>[{"time"=>"avg", "space"=>"max"}, {"time"=>"count", "space"=>"sum"}], "include_percentiles"=>"<boolean>"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;attributes&quot;:{&quot;aggregations&quot;:[{&quot;time&quot;:&quot;avg&quot;,&quot;space&quot;:&quot;avg&quot;},{&quot;time&quot;:&quot;count&quot;,&quot;space&quot;:&quot;min&quot;}],&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;include_percentiles&quot;:&quot;\u003cboolean\u003e&quot;,&quot;metric_type&quot;:&quot;gauge&quot;,&quot;modified_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;tags&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;manage_tags&quot;}}