Skip to main content
POST
/
v1
/
metrics:suggestMetric
Suggest Metric
curl --request POST \
  --url https://metrics.eu.confidence.dev/v1/metrics:suggestMetric \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "<string>",
  "description": "<string>"
}
'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
displayName
string

The title of the metric that you want to create.

description
string

The description of the metric that you want to create.

Response

200 - application/json

OK

metric
Metric · object

Metric: The suggested metric, empty if no suggestion could be made.

error
string

an error message if the suggestion failed.