Create/update a dashboard
POST/v1/grafana/api/dashboards/db
Creates or updates a new dashboard or updates an existing dashboard. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
dashboard object
The complete dashboard model, to create a new dashboard.
Nullable to create a new dashboard.
Optional unique identifier when creating a dashboard. will generate a new uid.
panels object[]
alert object
conditions object[]
evaluator object
operator object
query object
reducer object
fieldConfig object
defaults object
gridPos object
legend object
options object
targets object[]
thresholds object[]
tooltip object
xaxis object
yaxes object[]
yaxis object
Set the dashboard refresh interval. If this is lower than the minimum refresh interval, then Grafana will ignore it and will enforce the minimum refresh interval.
The id of the folder to save the dashboard in.
The unique identifier (uid) of a folder to search in for dashboards. You cannot use General
folder or the folder generated by logz.io - Logz.io Dashboards
- to place your alerts.
Set a commit message for the version history.
Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
Responses
- 200
- 412
successful query
- application/json
- Schema
- Example (from schema)
Schema
ID.
UID.
URL.
Request status.
Dashboard version.
Dashboard slug.
{
"id": 1,
"uid": "cIBgcSjkk",
"url": "/d/cIBgcSjkk/production-overview",
"status": "success",
"version": 1,
"slug": "production-overview"
}
failed
- application/json
- Schema
- Example (from schema)
Schema
Error message.
Error status.
{
"message": "The dashboard has been changed by someone else",
"status": "version-mismatch"
}