Forum Discussion

stevensullivan's avatar
10 years ago

Change language value

I would like to be able to update a users language preference. I am able to view the preference here:

 

{community url}/restapi/vc/users/id/{user id}/profiles/?profile.language

 

But im having trouble figuring out how to structure the rest call to change the value. After looking through the api documentation, i am still a little lost.

 

thanks!!

  • Hi stevensullivan

     

    have you tried ( I am using user self as an example but you can choose another one as in your call as well)

     

    https://<community>/restapi/vc/users/self/profiles/name/language

    to read the value and 

     

    https://<community>/restapi/vc/users/self/profiles/name/language/set?value=YY

    to set it? I think for the latter call you need to do an HTTP POST and also pass an appropriate authentication token

     

    Hope it helps,

1 Reply

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    10 years ago

    Hi stevensullivan

     

    have you tried ( I am using user self as an example but you can choose another one as in your call as well)

     

    https://<community>/restapi/vc/users/self/profiles/name/language

    to read the value and 

     

    https://<community>/restapi/vc/users/self/profiles/name/language/set?value=YY

    to set it? I think for the latter call you need to do an HTTP POST and also pass an appropriate authentication token

     

    Hope it helps,