POST api/Staff/Employees/Add
Request Information
URI Parameters
None.
Body Parameters
Employee| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| cusCode | string |
None. |
|
| code | string |
None. |
|
| fullName | string |
None. |
|
| imagePath | string |
None. |
|
| dob | string |
None. |
|
| yob | integer |
None. |
|
| sex | string |
None. |
|
| identityCard | string |
None. |
|
| string |
None. |
||
| numberphone1 | string |
None. |
|
| numberphone2 | string |
None. |
|
| address1 | string |
None. |
|
| address2 | string |
None. |
|
| workScheduleCode | string |
None. |
|
| status | string |
None. |
|
| note | string |
None. |
|
| createdOn | date |
None. |
|
| createdBy | string |
None. |
|
| modifiedOn | date |
None. |
|
| modifiedBy | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"cusCode": "sample string 2",
"code": "sample string 3",
"fullName": "sample string 4",
"imagePath": "sample string 5",
"dob": "sample string 6",
"yob": 1,
"sex": "sample string 7",
"identityCard": "sample string 8",
"email": "sample string 9",
"numberphone1": "sample string 10",
"numberphone2": "sample string 11",
"address1": "sample string 12",
"address2": "sample string 13",
"workScheduleCode": "sample string 14",
"status": "sample string 15",
"note": "sample string 16",
"createdOn": "2026-10-20T07:58:48.6077975+07:00",
"createdBy": "sample string 17",
"modifiedOn": "2026-10-20T07:58:48.6077975+07:00",
"modifiedBy": "sample string 18"
}
application/xml, text/xml
Sample:
<Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PetShop.API.Models"> <address1>sample string 12</address1> <address2>sample string 13</address2> <code>sample string 3</code> <createdBy>sample string 17</createdBy> <createdOn>2026-10-20T07:58:48.6077975+07:00</createdOn> <cusCode>sample string 2</cusCode> <dob>sample string 6</dob> <email>sample string 9</email> <fullName>sample string 4</fullName> <id>1</id> <identityCard>sample string 8</identityCard> <imagePath>sample string 5</imagePath> <modifiedBy>sample string 18</modifiedBy> <modifiedOn>2026-10-20T07:58:48.6077975+07:00</modifiedOn> <note>sample string 16</note> <numberphone1>sample string 10</numberphone1> <numberphone2>sample string 11</numberphone2> <sex>sample string 7</sex> <status>sample string 15</status> <workScheduleCode>sample string 14</workScheduleCode> <yob>1</yob> </Employee>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.