Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

how to update value of a variable using rest api #4037

zaara1 ·

I have a variable BOX at the configuration A>B.
I want to update the value of this variable BOX to some other value using rest api .How can I do that.

  • replies 1
  • views 27
  • stars 0
robinshen ADMIN ·

You may create a separate configuration in QB to execute groovy script to update variable:

groovy:
def conf = system.configurationManager.get("path/to/conf");
conf.getVar("varName").setValue(vars.getValue("varName"));
system.configurationManager.save(conf);

Then trigger build of this configuration via RESTful API and pass in varName with desired value:

This way you can virtually change anything you want via RESTful API.