Forum Discussion
- cikeChampion
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
- donpacoteHelper
when 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
You 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
- vedagarwGuide
Using 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.
Related Content
- 6 years ago
- 8 years ago
- 7 years ago