Create new project in subgroup using gitlab API

how can I create a project under a subgroup? Using the gitlab API?
I have

main:
 group1:
     group2:
        projectA
        projectB

I want to add a new projectC under group2, not any other level.
I know how to create it under main, but not under specific group

1 Like