xprofile_update
This endpoint will update BuddyPress extended profile fields data. Just provide field label, values and cookie of user.
Please make sure you provide ending comma for all those fields which have multiple values. e.g. If ‘skills’ xProfile field has multiple values, pass them like:
http://localhost/api/userplus/xprofile_update/? key=KEY-HERE&cookie=COOKIE-HERE&field=value&field2=value&multi-value-field=value1,value2,value3
http://localhost/api/userplus/xprofile_update/? key=KEY-HERE&cookie=COOKIE-HERE&skills=PHP,MySQL, or &skills=PHP,
Please make sure you always pass ending comma for multi-select fields to be added in array format.
Resource URL
http://localhost/api/userplus/xprofile_update/
Method
POST
Required Parameters
- cookie
- any profile 'field' var and 'value'
- key – get API key from Settings > User Plus
Sample Request URL
http://localhost/api/userplus/xprofile_update/?key=KEY-HERE&cookie=COOKIE-HERE&City=Chicago&Country=USA