I definitely already have a lot of stuff that automates baseline creation with the REST API. @jgo also has a program based upon some of my work.
See here: Automatic Baseline Creation and eventually AutoPatching
I currently have full auto patching solutions in place for specific applications, including Firefox, Skype, and iTunes, with more to come. I stepped back from OS patching because it was more complicated to handle as a first step and there was more benefit to gain from automating the software patches.
The way it works is the newest patches for each application are found using session relevance if and only if all of the current patches are not already contained within a baseline. The baseline XML is then generated with another session relevance statement with a check added to prevent the baseline from being run on a system where the application is opened. Another relevance statement is added to cause the baseline to be deployed progressively to endpoints so not all get the update at once. The previous baseline is stopped and the new baseline is started. The baseline waits for the target application to be closed on the targeted systems before running.
The automation is achieved entirely through a combination of session relevance and REST API calls, so there is no external logic, which means it can be automated through any language or function that can make REST API calls.