When I import Grafana dashboard with the browser, I see that the POST is made to /api/dashboards/import
. But when we look at the documentation http://docs.grafana.org/http_api/dashboard/, we see that the POST request should be made to api/dashboards/db
. There are both endpoints in Grafana, and expected content seems to be the same. What is the difference between those endpoints and which one should I use when using Grafana API.
Hi,
You should use the one as the documentation states, i.e. api/dashboards/db. With this one you can both import/create new dashboards (id = null) and update existing ones (id != null).
Marcus