0

I want to create a project in sonar cloud using its API and I can do that in Postman with the URL and token but when I try it with python it is not working and giving Insufficient privileges error I tried to copy the code from postman but then also it is giving me the same error.

postman code

url = f"https://{token}@sonarcloud.io/api/projects/create?name=sonar-awdd&organization=alex&project=sonar-awdd"

payload={}
headers = {}

response = requests.request("POST", url, headers=headers, data=payload)

Alex
  • 53
  • 6

0 Answers0