POST api/editEmployee
API นี้ทำการปรับเปลี่ยนแก้ไขข้อมูลพื้นฐานของพนักงาน
Request Information
URI Parameters
None.
Body Parameters
md_editEmployee| Name | Description | Type | Additional information |
|---|---|---|---|
| empID | integer |
Required |
|
| employee | md_employee |
None. |
Request Formats
application/json, text/json
Sample:
{
"empID": 1,
"employee": {
"title": "sample string 1",
"firstname": "sample string 2",
"lastname": "sample string 3",
"phone_num": "sample string 4",
"dpm_id": 5,
"pst_id": "sample string 6",
"email": "sample string 7"
}
}
application/xml, text/xml
Sample:
<md_editEmployee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models">
<empID>1</empID>
<employee>
<dpm_id>5</dpm_id>
<email>sample string 7</email>
<firstname>sample string 2</firstname>
<lastname>sample string 3</lastname>
<phone_num>sample string 4</phone_num>
<pst_id>sample string 6</pst_id>
<title>sample string 1</title>
</employee>
</md_editEmployee>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.