[release-12.0.0] Dashboard API: Update dashboard version docs (#104790)

Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com>
pull/104808/head
Stephanie Hingtgen 2 months ago committed by GitHub
parent f148a5eea5
commit d00b792a84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 53
      docs/sources/developers/http_api/dashboard_versions.md

@ -47,30 +47,33 @@ HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8 Content-Type: application/json; charset=UTF-8
Content-Length: 428 Content-Length: 428
[ {
{ "continueToken": "",
"id": 2, "versions": [
"dashboardId": 1, {
"uid": "QA7wKklGz", "id": 2,
"parentVersion": 1, "dashboardId": 1,
"restoredFrom": 0, "uid": "QA7wKklGz",
"version": 2, "parentVersion": 1,
"created": "2017-06-08T17:24:33-04:00", "restoredFrom": 0,
"createdBy": "admin", "version": 2,
"message": "Updated panel title" "created": "2017-06-08T17:24:33-04:00",
}, "createdBy": "admin",
{ "message": "Updated panel title"
"id": 1, },
"dashboardId": 1, {
"uid": "QA7wKklGz", "id": 1,
"parentVersion": 0, "dashboardId": 1,
"restoredFrom": 0, "uid": "QA7wKklGz",
"version": 1, "parentVersion": 0,
"created": "2017-06-08T17:23:33-04:00", "restoredFrom": 0,
"createdBy": "admin", "version": 1,
"message": "Initial save" "created": "2017-06-08T17:23:33-04:00",
} "createdBy": "admin",
] "message": "Initial save"
}
]
}
``` ```
Status Codes: Status Codes:
@ -89,7 +92,7 @@ Get the dashboard version with the given version, for the dashboard with the giv
**Example request for getting a dashboard version**: **Example request for getting a dashboard version**:
```http ```http
GET /api/dashboards/id/1/versions/1 HTTP/1.1 GET /api/dashboards/uid/QA7wKklGz/versions/1 HTTP/1.1
Accept: application/json Accept: application/json
Content-Type: application/json Content-Type: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk

Loading…
Cancel
Save