Staffs - Add New Staff
POST yourdomain.com/api/staffs
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. |
send_welcome_email (optional) | String |
Optional Staff send welcome email. |
departments (optional) | Number[] |
Optional Staff departments. |
Success 200
json
Field | Type | Description |
---|---|---|
status | String |
Request status. |
message | String |
Staff add successful. |
Error 4xx
json
Name | Type | Description |
---|---|---|
status | String |
Request status. |
message | String |
Staff add fail. |
HTTP/1.1 200 OK
{
"status": true,
"message": "Staff add successful."
}
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Staff add fail."
}