We want to set the default value for all created projects via the API.
The following curl command leads to insufficient privileges:
curl -u : --request POST https://sonarcloud.io/api/settings/set?key=sonar.leak.period&value=previous_project&component=
Why? The API key belongs to a user who is org admin.
- Is the API approach the best way to set default values for all projects in SonarCloud?
- How can I set project settings via API?