PUT api/Employees/Update?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

EmployeeBindingModel
NameDescriptionTypeAdditional information
FullName

string

Required

Code

string

None.

Email

string

Required

Data type: EmailAddress

Phone

string

None.

DateOfBirth

date

None.

Address

string

None.

DepartmentId

integer

None.

GroupBusinessId

integer

None.

Gender

byte

None.

BranchId

integer

None.

MinMoney

decimal number

None.

MaxMoney

decimal number

None.

DateOfStart

date

None.

DateOfContract

date

None.

DateOfOut

date

None.

TypeOfContractId

integer

None.

IDNo

string

None.

DateOfIssuse

date

None.

PlaceOfIssuse

string

None.

PlaceOfBirth

string

None.

BankNo

string

None.

BankId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "fullName": "sample string 1",
  "code": "sample string 2",
  "email": "sample string 3",
  "phone": "sample string 4",
  "dateOfBirth": "2025-12-06T12:25:49.7604239+07:00",
  "address": "sample string 5",
  "departmentId": 6,
  "groupBusinessId": 7,
  "gender": 64,
  "branchId": 9,
  "minMoney": 10.0,
  "maxMoney": 11.0,
  "dateOfStart": "2025-12-06T12:25:49.7604239+07:00",
  "dateOfContract": "2025-12-06T12:25:49.7604239+07:00",
  "dateOfOut": "2025-12-06T12:25:49.7604239+07:00",
  "typeOfContractId": 12,
  "idNo": "sample string 13",
  "dateOfIssuse": "2025-12-06T12:25:49.7604239+07:00",
  "placeOfIssuse": "sample string 14",
  "placeOfBirth": "sample string 15",
  "bankNo": "sample string 16",
  "bankId": 17
}

application/xml, text/xml

Sample:
<EmployeeBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Employee">
  <Address>sample string 5</Address>
  <BankId>17</BankId>
  <BankNo>sample string 16</BankNo>
  <BranchId>9</BranchId>
  <Code>sample string 2</Code>
  <DateOfBirth>2025-12-06T12:25:49.7604239+07:00</DateOfBirth>
  <DateOfContract>2025-12-06T12:25:49.7604239+07:00</DateOfContract>
  <DateOfIssuse>2025-12-06T12:25:49.7604239+07:00</DateOfIssuse>
  <DateOfOut>2025-12-06T12:25:49.7604239+07:00</DateOfOut>
  <DateOfStart>2025-12-06T12:25:49.7604239+07:00</DateOfStart>
  <DepartmentId>6</DepartmentId>
  <Email>sample string 3</Email>
  <FullName>sample string 1</FullName>
  <Gender>64</Gender>
  <GroupBusinessId>7</GroupBusinessId>
  <IDNo>sample string 13</IDNo>
  <MaxMoney>11</MaxMoney>
  <MinMoney>10</MinMoney>
  <Phone>sample string 4</Phone>
  <PlaceOfBirth>sample string 15</PlaceOfBirth>
  <PlaceOfIssuse>sample string 14</PlaceOfIssuse>
  <TypeOfContractId>12</TypeOfContractId>
</EmployeeBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.