As far as I know, discourse doesn’t have an api call to modify user email without confirmation. It has a shell command to do it, however its not suitable with my situation.
I’ve written my own api with php.
I really don’t know how much it takes. The code is already implemented in core as shell command. I’m not sure how much it takes to provide it in api.