POST api/PAC/WorkerDetail

Request Information

URI Parameters

None.

Body Parameters

WorkerPACCreateUpdateViewModel
NameDescriptionTypeAdditional information
WorkerId

globally unique identifier

None.

TitleTypeId

globally unique identifier

None.

FullName

string

None.

LastName

string

None.

DOB

date

None.

NRICNationalityID

string

None.

NationalityId

globally unique identifier

None.

RaceTypeId

globally unique identifier

None.

Gender

boolean

None.

IsFirstTime

boolean

None.

Department

string

None.

EmploymentTypeId

globally unique identifier

None.

BloodTypeId

globally unique identifier

None.

Allergy

string

None.

WorkerStatusId

globally unique identifier

None.

Designation

string

None.

IfOthers

string

None.

Email

string

None.

Remarks

string

None.

PassportNo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkerId": "6da32236-295a-4192-bcb8-5013f668bb2d",
  "TitleTypeId": "711c541f-29f7-4800-9791-6c863f417d3b",
  "FullName": "sample string 2",
  "LastName": "sample string 3",
  "DOB": "2024-12-28T18:10:02.2184602+00:00",
  "NRICNationalityID": "sample string 5",
  "NationalityId": "1a385f9b-7f5c-4281-b16b-933a3514eeca",
  "RaceTypeId": "805aab2d-e430-4d09-a5d5-bee4838e9093",
  "Gender": true,
  "IsFirstTime": true,
  "Department": "sample string 6",
  "EmploymentTypeId": "f02d6805-3078-4cfb-bc49-c8ca5d3d8418",
  "BloodTypeId": "05ebfed8-11f8-4b05-89ce-63f2a9b813f9",
  "Allergy": "sample string 7",
  "WorkerStatusId": "f9d45c4b-527b-4334-a046-6e91f187d877",
  "Designation": "sample string 8",
  "IfOthers": "sample string 9",
  "Email": "sample string 10",
  "Remarks": "sample string 11",
  "PassportNo": "sample string 12"
}

application/xml, text/xml

Sample:
<WorkerPACCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker">
  <Allergy>sample string 7</Allergy>
  <BloodTypeId>05ebfed8-11f8-4b05-89ce-63f2a9b813f9</BloodTypeId>
  <DOB>2024-12-28T18:10:02.2184602+00:00</DOB>
  <Department>sample string 6</Department>
  <Designation>sample string 8</Designation>
  <Email>sample string 10</Email>
  <EmploymentTypeId>f02d6805-3078-4cfb-bc49-c8ca5d3d8418</EmploymentTypeId>
  <FullName>sample string 2</FullName>
  <Gender>true</Gender>
  <IfOthers>sample string 9</IfOthers>
  <IsFirstTime>true</IsFirstTime>
  <LastName>sample string 3</LastName>
  <NRICNationalityID>sample string 5</NRICNationalityID>
  <NationalityId>1a385f9b-7f5c-4281-b16b-933a3514eeca</NationalityId>
  <PassportNo>sample string 12</PassportNo>
  <RaceTypeId>805aab2d-e430-4d09-a5d5-bee4838e9093</RaceTypeId>
  <Remarks>sample string 11</Remarks>
  <TitleTypeId>711c541f-29f7-4800-9791-6c863f417d3b</TitleTypeId>
  <WorkerId>6da32236-295a-4192-bcb8-5013f668bb2d</WorkerId>
  <WorkerStatusId>f9d45c4b-527b-4334-a046-6e91f187d877</WorkerStatusId>
</WorkerPACCreateUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="WorkerId"

6da32236-295a-4192-bcb8-5013f668bb2d
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="TitleTypeId"

711c541f-29f7-4800-9791-6c863f417d3b
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="FullName"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="LastName"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DOB"

2024-12-28T18:10:02.2184602+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="NRICNationalityID"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="NationalityId"

1a385f9b-7f5c-4281-b16b-933a3514eeca
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="RaceTypeId"

805aab2d-e430-4d09-a5d5-bee4838e9093
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Gender"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsFirstTime"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Department"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="EmploymentTypeId"

f02d6805-3078-4cfb-bc49-c8ca5d3d8418
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BloodTypeId"

05ebfed8-11f8-4b05-89ce-63f2a9b813f9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Allergy"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="WorkerStatusId"

f9d45c4b-527b-4334-a046-6e91f187d877
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Designation"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IfOthers"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Email"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Remarks"

sample string 11
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportNo"

sample string 12
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.