update_user
This endpoint is used to update user_meta and other details including password. Please see optional arguments for details.
Resource URL
http://localhost/api/userplus/update_user/
Method
POST
Required Parameters
- cookie
- key – get API key from Settings > User Plus
Optional Parameters
- user_nicename
- user_url
- user_email – must be valid email address that is not already used.
- user_pass – new password
- display_name
- nickname
- last_name
- user_meta - associative array of meta_key and meta_value
Sample Request URL
http://localhost/api/userplus/update_user/?key=KEY-HERE&cookie=COOKIE-HERE&password=newCastle1980
I noticed that the resource url for “update_user” and “update_password” are the same in the documentation. Is that a mistake or it is deliberate?
yes, that url has been fixed, it was mistake.
display_name
nickname
last_name
These fields are not updated.
You can update using meta_key