Metrics
Get a metric version
Returns a specific version of a metric, including its full config. The version_id path parameter accepts a version UUID or the literal latest.
Authorization
personalAccessToken AuthorizationBearer <token>
Personal Access Token of a Dynamiq user — the only credential accepted by the management API (api.*). Prefix dyn_pat_ (legacy uak_ tokens still authenticate). Send as Authorization: Bearer <token>.
In: header
Path Parameters
metric_id*string
Metric UUID.
version_id*string
Metric version UUID, or the literal latest for the most recent version.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/metrics/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/string"{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metric_id": "e3216117-28d7-4548-9b5f-7e08a760b2c7",
"version": 0,
"config": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"created_by": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"first_name": "string",
"last_name": "string",
"avatar_url": "string"
},
"updated_by": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"first_name": "string",
"last_name": "string",
"avatar_url": "string"
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized"
}
}{
"error": {
"code": "not_found",
"message": "Not Found"
}
}