Forum Discussion

fuenteso's avatar
fuenteso
Leader
8 years ago

Change user settings using the API

Hi! Is it possible to change a user setting (preference) using the API? I want to add a link to our 'success post page' that will disable the preference to show that page without having the user goi...
  • ChiaraS's avatar
    ChiaraS
    8 years ago

    fuenteso there's no list of the settings, but you can (in most cases) getting it looking at the name of the field in the settings page:

    (be aware that dots are removed, so this is actually config.show_confirm_page_on_post).

    In this case, the call you're looking for is /restapi/vc/users/id/<id>/settings/name/config.show_confirm_page_on_post (and /restapi/vc/users/id/<id>/settings/name/config.show_confirm_page_on_post/set?value=<true,false> to set).