Can automatic analysis be configured for a project created via the Web API?

Is it possible to programmatically configure automatic analysis for projects via the API? I tried creating some projects using the https://sonarcloud.io/web_api/api/projects create method - but I can’t seem to understand how to enable automatic analysis (which seems to be enabled just fine if onboarded manually via the UI)

Hey there.

There’s no public API call for doing so, but if you check the network calls being made by your browser when you enable/disable automatic analysis, you can probably figure it out :wink: But as they aren’t publicly documented, they’re subject to change at any time.

Thanks for the fast reply and help! Any guidance on troubleshooting a 500 response with “An unexpected error occurred. Please try again later”? I mimicked the body parameters - changing the projectKey appropriately.