UID should be an accepted parameter when creating dashboards. It [is supported in the HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/#create--update-dashboard).