POST api/Staff/CreateNewStaff
Request Information
URI Parameters
None.
Body Parameters
StaffViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| staffmasterid | integer |
None. |
|
| staffcode | string |
None. |
|
| fname | string |
None. |
|
| lname | string |
None. |
|
| phonenumber | string |
None. |
|
| logininfoid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"staffmasterid": 1,
"staffcode": "sample string 2",
"fname": "sample string 3",
"lname": "sample string 4",
"phonenumber": "sample string 5",
"logininfoid": 6
}
application/xml, text/xml
Sample:
<StaffViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/leadpilot_api.Models"> <fname>sample string 3</fname> <lname>sample string 4</lname> <logininfoid>6</logininfoid> <phonenumber>sample string 5</phonenumber> <staffcode>sample string 2</staffcode> <staffmasterid>1</staffmasterid> </StaffViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResultViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| status | boolean |
None. |
|
| message | string |
None. |
|
| data | Object |
None. |
|
| errorCode | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"message": "sample string 2",
"data": {},
"errorCode": 4
}
application/xml, text/xml
Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/leadpilot_api.Models"> <data /> <errorCode>4</errorCode> <message>sample string 2</message> <status>true</status> </HttpResultViewModel>