Openhab3 update thing config without mainUI

If I am not mistaken it is the same question as in How to use the API EXPLORER to change a thing configuration