update_dashboard
Create or modify Grafana dashboards using full JSON specifications or targeted patch operations to update specific dashboard components and settings.
Instructions
Create or update a dashboard using either full JSON or efficient patch operations
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dashboard | No | The full dashboard JSON | |
folderUid | No | The UID of the dashboard's folder | |
message | No | Set a commit message for the version history | |
operations | No | Array of patch operations for targeted updates | |
overwrite | No | Overwrite the dashboard if it exists | |
uid | No | UID of existing dashboard to update |
Input Schema (JSON Schema)
{
"properties": {
"dashboard": {
"additionalProperties": {},
"description": "The full dashboard JSON",
"type": "object"
},
"folderUid": {
"description": "The UID of the dashboard's folder",
"type": "string"
},
"message": {
"description": "Set a commit message for the version history",
"type": "string"
},
"operations": {
"description": "Array of patch operations for targeted updates",
"items": {
"additionalProperties": false,
"properties": {
"op": {
"description": "Operation type",
"enum": [
"replace",
"add",
"remove"
],
"type": "string"
},
"path": {
"description": "JSONPath to the property to modify",
"type": "string"
},
"value": {
"description": "New value for replace/add operations"
}
},
"required": [
"op",
"path"
],
"type": "object"
},
"type": "array"
},
"overwrite": {
"description": "Overwrite the dashboard if it exists",
"type": "boolean"
},
"uid": {
"description": "UID of existing dashboard to update",
"type": "string"
}
},
"type": "object"
}