-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Error received
curl -XPOST -i http://localhost:3000/api/dashboards/db -u xxxx:xxxxx --data-binary @./desktop.json -H "Content-Type: application/json"
HTTP/1.1 100 Continue
HTTP/1.1 404 Not Found
Content-Type: application/json
Date: Mon, 15 Apr 2019 15:57:45 GMT
Content-Length: 54''
{“message”:“Dashboard not found”,“status”:“not-found”}
Root Cause:
File export includes the 'id' of the dashboard. This needs to be set to 'null' in order to be imported.
Workaround:
Execute the following in the dashboards directory (works with GNU sed only)
sed -i '0,/"id": .*/{s/"id": .*/"id": null,/}' *.json
pahla1, bingshiao, yasharne, m4h, stleon and 42 morediranbarana, rostislaved, jamshid, DerrekWoodworth, AlbertoOS and 2 more
Metadata
Metadata
Assignees
Labels
No labels
