Forum Discussion
Hi vedagarw,
I think APIv1 is a good point to start. You can use the profiles resource to set values, e.g.:
<#assign response = restadmin("/users/id/${user_id?c}/profiles/name/<PROFILE_NAME>/set?value=<YOUR_VALUE>") />You can determine the profile name values using APIv1, too.
Best regards,
Christian
- vedagarw9 years agoGuideUsing this I can update only couple of fields. I need to update all the settings and preferences for the user. Is there an API which would more wider set of fields to play with. 
- donpacote9 years agoHelperwhen i use this all time have a permisions errors. Add i use SSO auth. /restapi/vc/users/id/21405/profiles/name/aaaaaaa/set?restapi.response_format=json&restapi.session_key=ohL0ZHOrTRRrnbJ2HbJtR1R9kPOjybIqYsrhYQTjLy0.&value=aaaaaaa doestn work - cike9 years agoChampiondonpacote - If you're making this request through your browser window, the call fails because there are some API restrictions on such calls. You have to use the restadmin keyword to make such calls. Best regards, Christian - donpacote9 years agoHelperok thanks for your fast response. Iam using eclipse to consume lithium services. Can i use restadmin inside? my request makes : /users/id/21405/profiles/name/aaaaaaa/set"; + new value + session_key. Could you give some clue. 
 
- TariqHussain9 years agoBossYou can not use restadmin over HTTP calls . if you have access to the studio. You can create an endpoint for this . Inside the endpoint, you can use restadmin call , this will bypass the permission issue. You can refer these links for endpoints https://community.lithium.com/t5/Components-endpoints-and-the/About-endpoints/ta-p/108971 https://community.lithium.com/t5/Developers-Knowledge-Base/Working-with-Endpoints/ta-p/60240 For restadmin https://community.lithium.com/t5/Developers-Discussion/What-is-restadmin/m-p/195062 Tariq 
 Give kudos if you find my posts helpful or mark solution if it answers your query