Create project for specified user gitlab API


I’m trying to create a git project on my gitlab server for a specific user via the API.

I run the following command:

curl --header “PRIVATE-TOKEN: privatetokenthingy” -X POST “”

I get no error but the project is made for the user root instead of the user with the id 51
what am I doing wrong?

I followed this site GITLAB API