Example API for creating SonarCloud Portfolios

Looked at previous posts and could not find a resolution.
The previous post provided info around extracting the XML request for a existing portfolio, but I could not get it working same as other users.

Can please share a example rest API that can be used to create portfolios.

Hey @Gerrie

I’d suggest that you refer to this guide.

Take note that Portfolios have been delivered on SonarQube Cloud very recently, and any APIs you sniff out are still internal (and why you aren’t finding any documentation about them)

I did manage to reverse engineer SonarCloud Portfolios, Groups and projects. Thanks.
Working perfectly.