Grafana Dashboard HTTP API with infinite data-source not working

Hello ,

I am trying to use Infinite data source to create a dashboard .

/api/dashboards/db
/api/datasources

I am able to create a dashboard from above API but i wanted to use while it create a dashbaord it should select infinite data source and my template ?

curl -X POST -H “Content-Type: application/json” -u admin:xxxxx
-d @12344j11-1706621082586.json
http://xxxxxxxxxxxxx/api/dashboards/db

Above command does not work for me . Even i tried in postman and get bad request.