Editing individual panels via API

I need to edit an individual dashboard panel’s display presentation based on a certain condition via API through an external script.

Does the Grafana API support editing individual panels? From what I’ve gathered so far, it appears that visual changes have to be made to the entire dashboard’s json instead of an individual panel’s json.

as far as I know, yes, you are correct. the http apis interface with the dashboard json alone.

there are a lot of community member who have worked on dashboard export scripts. Here are some useful resources–hopefully they can save some time if you do want to solve this with external scripting:

1 Like