This endpoint allows you update user_meta variables in one single call. It will cut http requests if you have to add/update multiple meta_key vars in a single call.
In the example call below, ‘website’, ‘city’, ‘country’ and ‘skills’ are meta_key for WordPress user_meta. It is different from BuddyPress xProfile fields.
Please make sure you provide ending comma for all those fields which have multiple values or supposed to have multiple values. e.g. If ‘skills’ field has multiple values, pass them like http://localhost/api/userplus/update_user_meta_vars/?cookie=COOKIE-HERE&skills=PHP,MySQL, or &skills=PHP, make sure you always pass ending comma for multi-select fields to be added in array format even if it has just one value on occasions since it can have multiple values.
- key – get API key from Settings > User Plus
- meta_value - You may send multiple values separated by comma for multi-select fields.
Sample Request URL