Is it possible to create dashboards from a json remotely using the API?

Nevermind, it was easier than expected, just paste the JSON in the “dashboard” property of the json.

Hope it helps someone!