Update a metric
Changed onRequest
- Base URLhttps://statsigapi.net
- URLhttps://statsigapi.net/console/v1/metrics/{id}
- AuthAPI key in header STATSIG-API-KEY
Path parameters
id
Request body
Example request
{
"name": "metricName",
"warehouseNative": {
"metricDimensionLimits": [
{
"limit": 10
}
],
"loadingWindow": 90
},
"percentile": 0.95,
"directionality": "increase",
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
}
}Response
Update metric response
Example response
{
"message": "Metric updated successfully.",
"data": {
"id": "TestMetricCapi::sum",
"name": "TestMetricCapi",
"directionality": "increase",
"type": "sum",
"description": "new description",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [],
"creatorName": "CONSOLE API",
"creatorEmail": null,
"createdTime": 1720218271796,
"owner": {
"name": "John Doe",
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
},
"lineage": {
"events": [
"add_to_cart"
],
"metrics": []
},
"team": "Console Team",
"unitTypes": [
"userID"
],
"metricEvents": [
{
"name": "add_to_cart",
"type": "value",
"criteria": []
}
],
"permalink": "https://console.statsig.com/company_id/metrics/metrics_catalog/TestMetricCapi/sum"
}
}Changes
- info
added the optional property
//to the response with the status
- info
- breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
the
/request property type changed fromnumbertointeger, and format fromdoubletoint64 - breaking
removed the required property
///from the response with the status - warning
the
/request property's exclusiveMinimum was set totrue - warning
the
/request property's exclusiveMinimum was set totrue - warning
the
/request property's exclusiveMinimum was set totrue - warning
the
/request property's max was set to1.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
the
/request property's min was set to0.00 - warning
removed the request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
the request property
became nullable
- breaking