Update a User
PUT/api/users/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | User unique ID |
| first_name | string | optional Optional User first name |
| last_name | string | optional Optional User last name |
| 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."
}