I have never tried it but according to this post Thing configuration from rules it is possible via the REST API and if you scroll further down there is a hint that it should be possible wit Jython.
1 Like