There is no REST API call for this as far as I know.
A plugin can probably do it. There's this class : http://docs.atlassian.com/atlassian-bamboo/latest/com/atlassian/bamboo/configuration/variable/ConfigureGlobalVariables.html but not sure how it's intended to be used. I would imagine you probably want to alter a global variable during a build (as part of a Task in a Job? If so there might be permissions issue since a Task is usable by any usable and altering global variables affects all users, so it might be limited to system admin permissions.
Hopefully one of the Atlassian folks can chime in with a better answer...
Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. At our European Summit just a few weeks ago, I spoke about the latest regarding our Server and Data center products and o...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs