Hi there
I am trying to import a dashboard that exists on grafana via the api into another grafana instance.
I am getting the following error:
[{“fieldNames”:[“Dashboard”],“classification”:“RequiredError”,“message”:“Required”}.
Command being used:
curl -X POST --insecure -H “Authorization: Bearer $apikey” -H “Content-Type: application/json” -d @overviewdashboard.json http://grafana.staged-by-discourse.com/api/dashboards/db
The json file starts with:
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- rt --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
}
Is it because the json file does not start with:
{
"dashboard": {
"id": null,
"uid": null,
"title": "Production Overview",
"tags": [ "templated" ],
"timezone": "browser",
"schemaVersion": 16,
"version": 0
},
"folderId": 0,
"overwrite": false
}
```**strong text**