Update a User

PUT/api/users/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number User unique ID
first_name string optional Optional User first name
last_name string optional Optional User last name
email string optional Optional User email
phone string optional Optional User phone
job_title string optional Optional Job title
gender string optional Optional Gender
status string optional Optional Status (active, inactive)
address string optional Optional Address
skype string optional Optional Skype ID
curl -X PUT "https://yoursite.com/api/users/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "field": "value" }'

Success-Response:

HTTP/1.1 200 OK
{
  "status": true,
  "message": "User Update Successful."
}
MethodPUT
Path/api/users/{id}
GroupUsers
Sincev1.0.0
Defined inRestApi/Controllers/UsersController.php