Getting 403 when trying to create project using token and API

Since 14.5.2 we are getting 403 Forbidden errors when trying to create projects using tokens with API calls. We’ve tried personal access tokens of an admin, impersonation tokens, all with API scope, but all return 403.

curl --request POST --header “PRIVATE-TOKEN:redacted” -H “Content-Type: application/json” “https://redacted/api/v4/projects/” --data ‘{“name”:“test-new-project”}’

There is no problem creating a project via GUI; no problem using tokens for read type calls. No problems before the latest update. There are no errors in the production log or error logs. Is anyone else experiencing this issue or have any clues how to troubleshoot this?

2 Likes

We are also experiencing the same issue with 14.5.2

We have the same problem here.

1 Like

I’ve created an issue under Can't create projects via API (response is "403 forbidden") (#348567) · Issues · GitLab.org / GitLab · GitLab, maybe you would like upvote the issue.

1 Like