Add custom metrics
POST
api/v2/talkwalker/p/:project_id/custom_metrics/addAdd custom metrics
Path Parameters
- project_id string requiredExample: {{project_id}}
- application/json
Request Body
- object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status_code": "0",
"status_message": "OK",
"request": "POST /api/v2/talkwalker/p/a1ab1abc-a123-123a-123a-abcd12ab1a12/custom_metrics/add?access_token=abcd_1234_abcd",
"request_id": "#rxl4w6edcgbb#",
"result_custom_metrics": {
"data": [
{
"custom_metric": {
"name": "metric1",
"title": "1st metric",
"description": "",
"display_in_ui": true,
"update_ts": 1689000198343,
"format": {
"name": "INTEGER"
}
},
"success": true
},
{
"custom_metric": {
"name": "metric2",
"title": "text metric",
"description": "",
"display_in_ui": true,
"update_ts": 1689000198437,
"format": {
"name": "TEXT"
}
},
"success": true
}
]
}
}
Loading...