/api/metric

POST /api/metric/{id}/dimension/set-default

Changed on

Mark exactly one dimension as the metric's default, clearing any previous default. A null dimension_id clears the default without setting a new one, so the metric renders as a scalar. Returns the updated list of added dimensions.

post/api/metric/{id}/dimension/set-default

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Path parameters

idinteger required

value must be an integer greater than zero.

Request body

dimension_idstring nullable required

value must be a non-blank string.

Response

Successful response

object[] required

Changes