List metric versions
Lists a metric's version history, most recent version first. Each entry omits the configuration body; fetch a specific version to retrieve its config.
Authorization
personalAccessToken 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 UUID.
Query Parameters
Page number (1-based).
Number of items per page. Values below the minimum or above the maximum are clamped to the nearest bound.
Comma-separated sort fields. Prefix a field with - for descending order, e.g. sort=-started_at.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/metrics/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions"{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"version": 0,
"metric_id": "e3216117-28d7-4548-9b5f-7e08a760b2c7",
"created_at": "2019-08-24T14:15:22Z",
"created_by": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"first_name": "string",
"last_name": "string",
"avatar_url": "string"
},
"updated_at": "2019-08-24T14:15:22Z",
"updated_by": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"first_name": "string",
"last_name": "string",
"avatar_url": "string"
},
"deleted_at": "2019-08-24T14:15:22Z",
"deleted_by": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"first_name": "string",
"last_name": "string",
"avatar_url": "string"
}
}
],
"pagination": {
"page": 0,
"page_size": 0,
"page_count": 0,
"total_count": 0
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized"
}
}{
"error": {
"code": "not_found",
"message": "Not Found"
}
}Update a metric
Updates a metric's `type` and `config`. Each update records a new immutable version; earlier versions remain retrievable through the versions endpoints.
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`.