Want to know how to create new project using apis programmatically for a given repo.
Hello Sharad, welcome to the SonarSource Community!
The web API is documented within your SonarQube instance; in particular for your question have a look at <your SonarQube URL>/web_api/api/projects
and you’ll see api/projects/create
documented on that page.
Thanks, it really worked.
Hi, i receive 401 error, but i do not know why?
my request head : admin_token
is my token
headers = {"content-type":"application/x-www-form-urlencoded", "Authorization":"access_token admin_token"}
and this case is also receive 401 error
headers = {"content-type":"application/x-www-form-urlencoded"}
result = requests.post(url, headers=headers, data=payload, auth=HTTPDigestAuth(user, passwd))
thank you !