Skip to main content

Create Metric

POST 

/api/v1/semantic/metrics

Create Metric

Summary​

POST /api/v1/semantic/metrics is an operation in the semantic group of the Nexatron REST API, served from https://api.nexatron.io. Send an API key as a bearer token in the Authorization header. It takes the optional query parameter locale and a JSON body whose required fields are name and display_name. A successful call returns 201; the other documented responses are 400, 401, 403, 404 and 422.

Example request​

curl -X POST "https://api.nexatron.io/api/v1/semantic/metrics" \
-H "Authorization: Bearer $NEXATRON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"<name>","display_name":"<display_name>"}'

Placeholders in angle brackets stand for your own values. NEXATRON_API_KEY holds an API key from Settings → API tokens. See the API overview for authentication, errors and rate limits.

Request​

Responses​

Successful Response