Api command for check branches

Hi everyone! I use web_api for configure report. I use command “curl -u <my_token>: https://sonarcloud.io/api/issues/search?projectKeys=<my_project_name> > sonar-report.json”
In some project i have only one branches and everything work fine, but in others projects i have develop and main branches and i cant configure report, for this i use this command “curl -u <my_token>: https://sonarcloud.io/api/issues/search?projectKeys=<my_project_name>&branch=develop > sonar-report.json” and this doesnt work… Can you help me, what command is true for configure report where i have one more branches ?

Hi,

Have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

 
HTH,
Ann