How to duplicate Grafana dashboard using API

Hi, have been trying to duplicate already set up Grafana dashboard using API post requests. What i did was copy the JSON model of the dashboard from Grafana web UI and set id and uid to “null”, as well as changes the name of it. When trying to post it to on Grafana keep getting ‘bad request data’ 400 error. Could you please explain how the new grafana dashboard JSON body should be configured to exactly duplicate already existing dashboard?