curl --request POST \
--url http://localhost/api/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"suffix": "<string>",
"calc_type": 0,
"description": "<string>",
"default_value": 123,
"display_chart": true,
"threshold": 30,
"places": 123
}
'