How do I script linking a SonarCloud project to a Bitbucket Cloud repo

Hey @Ivan_Kabaivanov

When I create a new project in SonarCloud using the project creation wizard, my project is automatically bound on the Bitbucket side.

Is it working differently for you when a new project is created, bound to a repository on Bitbucket?

For existing projects, we have no public API for doing the link.