SonarQube API create project return 200 but no project created

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

    Enterprise Edition Version 9.6.1 (build 59531)

  • what are you trying to achieve

trying to use web API to create multiple projects in SonarQube

  • what have you tried so far to achieve this

Made curl call in ubuntu (on windows). The call is successful, and the return Json looks good. But when I go to the SonarQube, the project didn’t show up. If I manually create the project with the same project key,
2022-12-14_9-55-22

I was able to get it working. The issue seems to be the parameter: visibility. If I provide the POST data as:
-data “name=xxxxx&project=xxxx&branch=master”
then it worked. But the document clearly showed that it can use visibility.
https://gazelle.ihe.net/sonar/web_api/api/projects

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.