Need sample xml file to create portfolios in in hierarchical form

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : 8.4
  • what are you trying to achieve : create portfolios using apis by providing xml as input files.

Hello Team,
i read api documentation to create portfolios through api. good to know that we can create multiple portfolios in hierarchical form. i have 2 query

1- Do you have any sample xml file which i can take as reference. if yes, please share.

2- what will happen i try to create a portfolio (using xml) which already exit ? api will return error or it will simply ignore and create rest of portfolios?

Hi,

I believe when you upload an XML file it overlays the existing structure. So there’s no problem with re-defining a portfolio.

As to an example file, just set up a small hierarchy & export it -> sample file.

 
:smiley:
Ann