Importing and Exporting dashboards either from script or command line

I have exported my dashboard into a .json file in my local machine. Now I have deleted the particular saved dashboard from Kibana and trying to import it back using the same .json file with the help of command line through curl command:
curl -XPUT http://localhost:9200/.kibana/dashboard/xyz --data-binary @me.json

But I am facing issues. Please help.

Hi

What kind of issues are you facing? Are there any supported logs to attach which may tell what the problem is? I suspect it also might be related to permission issue of the JSON file.

Thanks
Rashmi