Skip to main content

Update Metric

PATCH 

/api/v1/semantic/metrics/:metric_id

Update Metric

Summary​

PATCH /api/v1/semantic/metrics/{metric_id} 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 path parameter metric_id, the optional query parameter locale and a JSON body with no required fields. A successful call returns 200; the other documented responses are 400, 401, 403, 404 and 422.

Example request​

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

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