v2
latestOpenAPI 3.0.02026-08-073221853.1 MBMetrics
Metrics (Warehouse Native)
Update Metric Source
post/console/v1/metrics/metric_source/{name}
Path parameters
namestring required
name
Request body
Example request
{
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
}
}Response
Update metric source response
Example response
{
"message": "Metric source updated successfully.",
"data": {
"name": "test_metric_source4",
"description": "Test description for metric source",
"tags": [
"non_production"
],
"sql": "SELECT * FROM `shoppy-sales.logging.events`",
"timestampColumn": "ts",
"timestampAsDay": true,
"idTypeMapping": [
{
"statsigUnitID": "userID",
"column": "user_id"
}
],
"sourceType": "table",
"tableName": "shoppy-sales.logging.events"
}
}