POST api/WorkerAssessment/SectionTwo/Detail

Request Information

URI Parameters

None.

Body Parameters

SectionTwoWorkerCreateUpdateViewModel
NameDescriptionTypeAdditional information
WorkerAssessmentId

globally unique identifier

None.

WorkerId

globally unique identifier

None.

FullName

string

None.

LastName

string

None.

DOB

date

None.

Gender

boolean

None.

NationalityId

globally unique identifier

None.

NRICNationalityID

string

None.

RaceTypeId

globally unique identifier

None.

CompanyAddress

string

None.

DateExamination

date

None.

PlaceExamination

string

None.

PlaceExaminationId

globally unique identifier

None.

PersonalPhysician

string

None.

PassportNo

string

None.

ContactNo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkerAssessmentId": "1e8a4599-0ffc-4b89-8fad-bc2d4711ccbc",
  "WorkerId": "0972c544-acb7-4f0d-bf56-93c7b2b3daef",
  "FullName": "sample string 3",
  "LastName": "sample string 4",
  "DOB": "2024-12-28T18:09:54.2258152+00:00",
  "Gender": true,
  "NationalityId": "03e485ea-b446-40f9-b191-dffffd61617c",
  "NRICNationalityID": "sample string 8",
  "RaceTypeId": "610f4fdb-076a-42c3-b93c-51916cfa478f",
  "CompanyAddress": "sample string 9",
  "DateExamination": "2024-12-28T18:09:54.2258152+00:00",
  "PlaceExamination": "sample string 11",
  "PlaceExaminationId": "85b880ab-c9a0-4ec3-97e9-7de9f0773824",
  "PersonalPhysician": "sample string 12",
  "PassportNo": "sample string 13",
  "ContactNo": "sample string 14"
}

application/xml, text/xml

Sample:
<SectionTwoWorkerCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker.ViewModels">
  <CompanyAddress>sample string 9</CompanyAddress>
  <ContactNo>sample string 14</ContactNo>
  <DOB>2024-12-28T18:09:54.2258152+00:00</DOB>
  <DateExamination>2024-12-28T18:09:54.2258152+00:00</DateExamination>
  <FullName>sample string 3</FullName>
  <Gender>true</Gender>
  <LastName>sample string 4</LastName>
  <NRICNationalityID>sample string 8</NRICNationalityID>
  <NationalityId>03e485ea-b446-40f9-b191-dffffd61617c</NationalityId>
  <PassportNo>sample string 13</PassportNo>
  <PersonalPhysician>sample string 12</PersonalPhysician>
  <PlaceExamination>sample string 11</PlaceExamination>
  <PlaceExaminationId>85b880ab-c9a0-4ec3-97e9-7de9f0773824</PlaceExaminationId>
  <RaceTypeId>610f4fdb-076a-42c3-b93c-51916cfa478f</RaceTypeId>
  <WorkerAssessmentId>00000000-0000-0000-0000-000000000000</WorkerAssessmentId>
  <WorkerId>0972c544-acb7-4f0d-bf56-93c7b2b3daef</WorkerId>
  <WorkerAssessmentId>1e8a4599-0ffc-4b89-8fad-bc2d4711ccbc</WorkerAssessmentId>
</SectionTwoWorkerCreateUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

1e8a4599-0ffc-4b89-8fad-bc2d4711ccbc
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="WorkerId"

0972c544-acb7-4f0d-bf56-93c7b2b3daef
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="FullName"

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

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

2024-12-28T18:09:54.2258152+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Gender"

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

03e485ea-b446-40f9-b191-dffffd61617c
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="NRICNationalityID"

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

610f4fdb-076a-42c3-b93c-51916cfa478f
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="CompanyAddress"

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

2024-12-28T18:09:54.2258152+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PlaceExamination"

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

85b880ab-c9a0-4ec3-97e9-7de9f0773824
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PersonalPhysician"

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

sample string 13
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ContactNo"

sample string 14
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.