Add a project on a fresh GitLab CE container

I’ve brought up a fresh GitLab CE container. I’ve set GITLAB_ROOT_PASSWORD and I’m able to login.

I’m using this setup strictly as a way to test features.

When I attempt to use GitLab’s API to create a project:

curl -k -X POST --user root:testpassword "https://gitlab.example.com/api/v4/projects?name=foobartest"

{"message":"401 Unauthorized"}

I want to be able to start up the image and have a project available for use. What’s the easiest way to add a project programmatically?