v1
latestOpenAPI 3.0.02026-07-13103151174.7 KBMetrics
Update a Metric
patch/v1/projects/{project}/metrics/{key}
Path parameters
keystring required
projectstring required
A Project key or ID
Request body
Example request
{
"name": "New Signups",
"key": "new-signups",
"description": "New signups on the dashboard",
"event": "Sign Ups",
"dimension": "COUNT_PER_UNIQUE_USER",
"optimize": "increase"
}Response
Example response
{
"name": "New Signups",
"key": "new-signups",
"description": "New signups on the dashboard",
"_id": "61450f3daec96f5cf4a49946",
"event": "Sign Ups",
"dimension": "COUNT_PER_UNIQUE_USER",
"optimize": "increase"
}