Grafana HTTP API is not updating the dashboard correctly

I am trying to update existing json file using HTTP grafana API but it is not updating the dashboard successfully in grafana, i used the below command,

curl --user admin:admin -vvv "http://local:3000/api/dashboards/db" -X POST -d @My_Metrics.json -H 'Content-Type: application/json'

I got the response message for the above command is,

  • About to connect() to localhost port 3000 (#0)
  • Trying 10.x.x.x…
  • Connected to localhost (10.x.x.x) port 3000 (#0)
  • Server auth using Basic with user ‘admin’

POST /api/dashboards/db HTTP/1.1

Authorization: Basic YWRtaW46YWRtaW4=

User-Agent: curl/7.29.0

Host: localhost:3000

Accept: /

Content-Type: application/json

Content-Length: 39380

Expect: 100-continue

HTTP/1.1 100 Continue

HTTP/1.1 422 Unprocessable Entity

Cache-Control: no-cache

Content-Type: application/json; charset=utf-8

Expires: -1

Pragma: no-cache

X-Frame-Options: deny

X-Xss-Protection: 1; mode=block

Date: Wed, 03 Jul 2019 12:19:20 GMT

Content-Length: 84

  • HTTP error before end of send, stop sending
  • Closing connection 0

[{“fieldNames”:[“Dashboard”],“classification”:“RequiredError”,“message”:“Required”}]

Kindly assist where is the problem and how to resolve this