update the settings API to use JSON Patch