#I’m getting 405 Method not allowed. Is there a better way to do this using the RestAPI? #Also the VariableSet section of the RestAPI documentation is a little sparse with broken links. Can anyone point me in the right direction?
That API call doesn’t quite work like that. In a nutshell, what we POST to /api/variables is the entire variable set, and not just a single variable. So first you’ll have to GET the entire variable set from api/variables/[ID], then append the variable and finally post the entire set back.
Please be super careful when using it. Test it first on a dummy project until you are sure you understand how it works.
Regarding our lack of documentation for the API, it is (sadly) very true, and its something we are aware of and that we’re gonna work on. Our plan is sometime after 3.4 to re-write the API in a different tecnology so we can take advantage of tools that can automate the doc generating process.