I am trying to create a group using Gitlab CE 12.4.3 The api token is the one generated by the admin account in Gitlab. SO this account has the permission to create groups
curl --header "PRIVATE-TOKEN: 6czXYzu1j7dD16PqtiZw" -d "name=TEST&path=test" -X POST https://mygitlabserver/api/v4/groups
{"message":"403 Forbidden"}
I get an error message saying that it is forbidden.
The token is correct as I manage to list the projects or groups if I do :
curl --header "PRIVATE-TOKEN: 6czXYzu1j7dD16PqtiZw" -X GET https://mygitlabserver/api/v4/groups
or
curl --header "PRIVATE-TOKEN: 6czXYzu1j7dD16PqtiZw" -X GET https://mygitlabserver/api/v4/projects