How to create a project in a particular group via command line at runtime?

I am trying to create a new repo via command line in a particular project. How do I do that? I have the group id for that project. I understand since namedspace is different I need to use APIs to call this.

So, this is what I am trying to accomplish…

curl --request PUT --header “PRIVATE-TOKEN:$token” “https://gitlab.someurl.com/api/v4/groups/16/?name=$repo_name

Since repo_name is to be created at run time, I know the group number where I need to create this project in.

Thanks for your help in Advance.

Id like to do this too, did you figure it out?