POST api/PAC/SupplementaryTrainingDetail

Request Information

URI Parameters

None.

Body Parameters

WorkerSupplementaryTrainingPACCreateUpdateViewModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CourseId

globally unique identifier

None.

CertificateNo

string

None.

DateAttended

date

None.

ValidUntil

date

None.

WorkerId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "7023b3dd-d6fe-4f01-aca0-e15c86985dbe",
  "CourseId": "2c948859-8b08-4048-b37c-f76a0ef56c98",
  "CertificateNo": "sample string 3",
  "DateAttended": "2024-12-28T18:10:01.372818+00:00",
  "ValidUntil": "2024-12-28T18:10:01.372818+00:00",
  "WorkerId": "eb7a0cce-66e2-442d-a977-70cbbb1d1765"
}

application/xml, text/xml

Sample:
<WorkerSupplementaryTrainingPACCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker">
  <CertificateNo>sample string 3</CertificateNo>
  <CourseId>2c948859-8b08-4048-b37c-f76a0ef56c98</CourseId>
  <DateAttended>2024-12-28T18:10:01.372818+00:00</DateAttended>
  <Id>7023b3dd-d6fe-4f01-aca0-e15c86985dbe</Id>
  <ValidUntil>2024-12-28T18:10:01.372818+00:00</ValidUntil>
  <WorkerId>eb7a0cce-66e2-442d-a977-70cbbb1d1765</WorkerId>
</WorkerSupplementaryTrainingPACCreateUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

7023b3dd-d6fe-4f01-aca0-e15c86985dbe
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="CourseId"

2c948859-8b08-4048-b37c-f76a0ef56c98
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="CertificateNo"

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

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

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

eb7a0cce-66e2-442d-a977-70cbbb1d1765
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.