POST api/Employee/ManageExternalEmployment
Request Information
URI Parameters
None.
Body Parameters
PreviousEmploymentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CandidateId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| CompanyName | string |
None. |
|
| CompanyAddress | string |
None. |
|
| Salary | decimal number |
None. |
|
| IndustryId | integer |
None. |
|
| IndustryName | string |
None. |
|
| Function | string |
None. |
|
| Role | string |
None. |
|
| Position | string |
None. |
|
| Branch | string |
None. |
|
| Department | string |
None. |
|
| EmploymentType | string |
None. |
|
| EmploymentRank | string |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| EmploymentTypeId | integer |
None. |
|
| FunctionId | integer |
None. |
|
| FunctionName | string |
None. |
|
| RoleId | integer |
None. |
|
| RoleName | string |
None. |
|
| ReasonForLeaving | string |
None. |
|
| JobDescription | string |
None. |
|
| UserId | integer |
None. |
|
| Mode | integer |
None. |
|
| FunctionsDropdown | Collection of FunctionDropdownModel |
None. |
|
| RolesDropdown | Collection of RoleDropdownModel |
None. |
|
| IndustryDropdown | Collection of IndustryDropdownModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CandidateId": 2,
"CompanyId": 3,
"CompanyName": "sample string 4",
"CompanyAddress": "sample string 5",
"Salary": 1.0,
"IndustryId": 6,
"IndustryName": "sample string 7",
"Function": "sample string 8",
"Role": "sample string 9",
"Position": "sample string 10",
"Branch": "sample string 11",
"Department": "sample string 12",
"EmploymentType": "sample string 13",
"EmploymentRank": "sample string 14",
"StartDate": "2026-11-21T12:46:41.6654462+08:00",
"EndDate": "2026-11-21T12:46:41.6654462+08:00",
"EmploymentTypeId": 15,
"FunctionId": 16,
"FunctionName": "sample string 17",
"RoleId": 18,
"RoleName": "sample string 19",
"ReasonForLeaving": "sample string 20",
"JobDescription": "sample string 21",
"UserId": 22,
"Mode": 23,
"FunctionsDropdown": [
{
"Id": 1,
"FunctionName": "sample string 2"
},
{
"Id": 1,
"FunctionName": "sample string 2"
}
],
"RolesDropdown": [
{
"Id": 1,
"FunctionId": 2,
"Description": "sample string 3"
},
{
"Id": 1,
"FunctionId": 2,
"Description": "sample string 3"
}
],
"IndustryDropdown": [
{
"Id": 1,
"IndustryName": "sample string 2",
"PSICCode": "sample string 3",
"CountryId": 4
},
{
"Id": 1,
"IndustryName": "sample string 2",
"PSICCode": "sample string 3",
"CountryId": 4
}
]
}
application/xml, text/xml
Sample:
<PreviousEmploymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRModel.ViewModel.Employees">
<Branch>sample string 11</Branch>
<CandidateId>2</CandidateId>
<CompanyAddress>sample string 5</CompanyAddress>
<CompanyId>3</CompanyId>
<CompanyName>sample string 4</CompanyName>
<Department>sample string 12</Department>
<EmploymentRank>sample string 14</EmploymentRank>
<EmploymentType>sample string 13</EmploymentType>
<EmploymentTypeId>15</EmploymentTypeId>
<EndDate>2026-11-21T12:46:41.6654462+08:00</EndDate>
<Function>sample string 8</Function>
<FunctionId>16</FunctionId>
<FunctionName>sample string 17</FunctionName>
<FunctionsDropdown>
<FunctionDropdownModel>
<FunctionName>sample string 2</FunctionName>
<Id>1</Id>
</FunctionDropdownModel>
<FunctionDropdownModel>
<FunctionName>sample string 2</FunctionName>
<Id>1</Id>
</FunctionDropdownModel>
</FunctionsDropdown>
<Id>1</Id>
<IndustryDropdown>
<IndustryDropdownModel>
<CountryId>4</CountryId>
<Id>1</Id>
<IndustryName>sample string 2</IndustryName>
<PSICCode>sample string 3</PSICCode>
</IndustryDropdownModel>
<IndustryDropdownModel>
<CountryId>4</CountryId>
<Id>1</Id>
<IndustryName>sample string 2</IndustryName>
<PSICCode>sample string 3</PSICCode>
</IndustryDropdownModel>
</IndustryDropdown>
<IndustryId>6</IndustryId>
<IndustryName>sample string 7</IndustryName>
<JobDescription>sample string 21</JobDescription>
<Mode>23</Mode>
<Position>sample string 10</Position>
<ReasonForLeaving>sample string 20</ReasonForLeaving>
<Role>sample string 9</Role>
<RoleId>18</RoleId>
<RoleName>sample string 19</RoleName>
<RolesDropdown>
<RoleDropdownModel>
<Description>sample string 3</Description>
<FunctionId>2</FunctionId>
<Id>1</Id>
</RoleDropdownModel>
<RoleDropdownModel>
<Description>sample string 3</Description>
<FunctionId>2</FunctionId>
<Id>1</Id>
</RoleDropdownModel>
</RolesDropdown>
<Salary>1</Salary>
<StartDate>2026-11-21T12:46:41.6654462+08:00</StartDate>
<UserId>22</UserId>
</PreviousEmploymentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |