Staffs - Update a Staff
PUT yourdomain.com/api/staffs/:id
Header
json
Field | Type | Description |
---|---|---|
Authorization | String |
Basic Access Authentication token. |
Parameter
json
Field | Type | Description |
---|---|---|
firstname | String |
Mandatory Staff Name. |
String |
Mandatory Staff Related. |
|
password | String |
Mandatory Staff password. |
hourly_rate (optional) | Number |
Optional hourly rate. |
phonenumber (optional) | String |
Optional Staff phonenumber. |
facebook (optional) | String |
Optional Staff facebook. |
linkedin (optional) | String |
Optional Staff linkedin. |
skype (optional) | String |
Optional Staff skype. |
default_language (optional) | String |
Optional Staff default language. |
email_signature (optional) | String |
Optional Staff email signature. |
direction (optional) | String |
Optional Staff direction. |
departments (optional) | Number[] |
Optional Staff departments. |
Success 200
json
Field | Type | Description |
---|---|---|
status | String |
Request status. |
message | String |
Staff Update Successful. |
Error 4xx
json
Name | Type | Description |
---|---|---|
status | String |
Request status. |
message | String |
Staff Update Fail. |
HTTP/1.1 200 OK
{
"status": true,
"message": "Staff Update Successful."
}
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Staff Update Fail."
}