This was recently discussed on the list here https://www.mail-archive.com/[email protected]/msg38830.html
As Pierre says, you could likely wrap up that SQL into a paramaterized function, and call it through the WebAPI (alternatively, directly against the database as a scheduled task). Regards, Jason On Fri, Nov 13, 2015 at 9:24 AM, Farai Mutero <[email protected]> wrote: > Thanks Dan and Pierre for the advise, much appreciated. > > On Thu, Nov 12, 2015 at 11:16 PM, Pierre Dane <[email protected]> wrote: > >> if there is no existing API endpoint (which there might be) you could use >> a parameterized sqlview calling a function which updates the user table >> directly >> >> >> On Thursday, 12 November 2015, Farai Mutero <[email protected]> wrote: >> >>> Hi All >>> >>> DHIS2 has a very useful User Settings feature that allows one to set >>> whether a user would like to receive email and SMS message notifcations >>> from DHIS2. >>> >>> How do I go about enabling / disabling such settings for a registered >>> user via the Web API? I'm running on DHIS2 2.19. See screenshot below: >>> >>> [image: Inline image 1] >>> >>> Regards >>> -- >>> Farai Mutero >>> >>> >> >> -- >> Pierre Dane >> >> Development Manager >> Jembi Health Systems >> >> > > > -- > Farai Mutero > > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > > -- Jason P. Pickering email: [email protected] tel:+46764147049
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

