Forum Discussion

mvanhoutteLM's avatar
mvanhoutteLM
Contributor
8 years ago

Lithium API disable user personal message

Hi,

 

I'd like to know if there is a way to enable/disable personal messages for a given user using the API.

If so what is the URL and parameters, or a link to the documentation ?

 

Thanks !

 

Mickaël

 

 

  • Hi mvanhoutteLM,

     

    I would suggest, request all settings of the user using the following API call:

     

    /t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&branch=Settings

     

    To get all user settings for a given user you may use the restadmin freemarker object. If you request the API ressource through your browser, you only get a subset of the user settings.

     

    From the returned list, I would look for a setting like "private messaging". If there is one found, you can use this API call to set the value (true/false).

     

    Hopefully this helps.

     

    Regards,

    Christian