Example usage of api/project_analyses/set_baseline

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Version 7.7
  • what are you trying to achieve
    Example usage of the api method “project_analyses/set_baseline”
  • what have you tried so far to achieve this
    Using PostMan to set the baseline for a project I keep getting 401 http response code.


A 401 is an ‘unauthorized’ error. You need to pass in the user token of an account with admin permissions on the project. Note that the web services expect just basic auth. The docs give an example using curl.