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

Hi.

I have a grafana dashboard that i want to duplicate dynamicly by changing only its querys to get diferent “IDs” from the datasource, but i dont know in advance what IDs would have. So, is there a way to create a dashboard though the api that initializes it by passing a json string?

I mean, like duplicating a dashboard by getting its json string and creating a new one from the GUI.

Regards

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

Hope it helps someone!