I exported a dashboard I’ve setup and would like to use as a template.
But I failed to use it from the API :
curl -X POST --insecure -H "Authorization: Bearer <token>" -H "Content-Type: application/json" --data-binary @./template.json http://grafana.staged-by-discourse.com/api/dashboards/db
[{"fieldNames":["Dashboard"],"classification":"RequiredError","message":"Required"}]
why do the API need a “dashboard” field as I exported one just before ?
How do I have to do that ?