We have a task where we need to pull the metrics/report of the vulnerabilities like Blockage, major , minor details using sonarqube Web API through Powershell script and once the report is pulled then it has to show the details when a Pull request is failed in Azure DevOps.
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.