POST api/editEmployee

API นี้ทำการปรับเปลี่ยนแก้ไขข้อมูลพื้นฐานของพนักงาน

Request Information

URI Parameters

None.

Body Parameters

md_editEmployee
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'md_editEmployee'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.