Update existing Joomla user.
https://yourdomain.com/api/v1/user/edit/:id
Option | Description |
---|---|
Response formats | JSON |
Requires authentication | YES |
Rate limited | YES |
Name | Details |
---|---|
name |
|
username |
|
password |
|
|
|
groups |
|
If the groups list is missing, null or out of bounds, it will default to group ids array(1,2).
UPDATE 2017-03-31: This method currently requires administrative access. Therefore, a user cannot use this method on their own account to update their own (or other's) passwords unless they are already an administrator with core.admin capability.
POST https://yourdomain.com/api/v1/user/edit/344 ?name=First Last &username=firstlast &password=randompassword
{
"id": 344,
"error": false,
"status": 200
}
HTTP/1.1 200 OK
Date: Wed, 23 Mar 2016 03:30:05 GMT
Server: Apache/2.2.15
X-Powered-By: PHP/5.4.45
Access-Control-Allow-Origin: *
Joomla-Sessionid: 34343434343434343434343434
Access-Control-Allow-Headers: X-Requested-With, Origin, Content-Type, token, dlid, nonce
Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json