It would be great to be able to enter safe mode from API before updating settings. It shouldn’t be so hard to implement!
+1