POST api/PAC/TrainingDetail
Request Information
URI Parameters
None.
Body Parameters
WorkerTrainingPACCreateUpdateViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| WorkerId | globally unique identifier |
None. |
|
| WorkerTrainings | Collection of WorkerTrainingPAC |
None. |
Request Formats
application/json, text/json
Sample:
{
"WorkerId": "9b34a504-d6bd-48ee-a2fb-f4b4ae1c795b",
"WorkerTrainings": [
{
"Id": "0a5d3614-afde-4046-ba97-818ef9c2a859",
"CourseId": "ed9e08e7-2154-4c02-bf2e-53f39caac909",
"CertificateNo": "sample string 3",
"DateAttended": "2026-01-20T10:22:29.9658475+00:00",
"ValidUntil": "2026-01-20T10:22:29.9658475+00:00"
},
{
"Id": "0a5d3614-afde-4046-ba97-818ef9c2a859",
"CourseId": "ed9e08e7-2154-4c02-bf2e-53f39caac909",
"CertificateNo": "sample string 3",
"DateAttended": "2026-01-20T10:22:29.9658475+00:00",
"ValidUntil": "2026-01-20T10:22:29.9658475+00:00"
}
]
}
application/xml, text/xml
Sample:
<WorkerTrainingPACCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker">
<WorkerId>9b34a504-d6bd-48ee-a2fb-f4b4ae1c795b</WorkerId>
<WorkerTrainings xmlns:d2p1="http://schemas.datacontract.org/2004/07/iP.Products.Domains.MySDS.Commands">
<d2p1:WorkerTrainingPAC>
<d2p1:CertificateNo>sample string 3</d2p1:CertificateNo>
<d2p1:CourseId>ed9e08e7-2154-4c02-bf2e-53f39caac909</d2p1:CourseId>
<d2p1:DateAttended>2026-01-20T10:22:29.9658475+00:00</d2p1:DateAttended>
<d2p1:Id>0a5d3614-afde-4046-ba97-818ef9c2a859</d2p1:Id>
<d2p1:ValidUntil>2026-01-20T10:22:29.9658475+00:00</d2p1:ValidUntil>
</d2p1:WorkerTrainingPAC>
<d2p1:WorkerTrainingPAC>
<d2p1:CertificateNo>sample string 3</d2p1:CertificateNo>
<d2p1:CourseId>ed9e08e7-2154-4c02-bf2e-53f39caac909</d2p1:CourseId>
<d2p1:DateAttended>2026-01-20T10:22:29.9658475+00:00</d2p1:DateAttended>
<d2p1:Id>0a5d3614-afde-4046-ba97-818ef9c2a859</d2p1:Id>
<d2p1:ValidUntil>2026-01-20T10:22:29.9658475+00:00</d2p1:ValidUntil>
</d2p1:WorkerTrainingPAC>
</WorkerTrainings>
</WorkerTrainingPACCreateUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerId" 9b34a504-d6bd-48ee-a2fb-f4b4ae1c795b --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].Id" 0a5d3614-afde-4046-ba97-818ef9c2a859 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].CourseId" ed9e08e7-2154-4c02-bf2e-53f39caac909 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].CertificateNo" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].DateAttended" 2026-01-20T10:22:29.9658475+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].ValidUntil" 2026-01-20T10:22:29.9658475+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].Id" 0a5d3614-afde-4046-ba97-818ef9c2a859 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].CourseId" ed9e08e7-2154-4c02-bf2e-53f39caac909 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].CertificateNo" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].DateAttended" 2026-01-20T10:22:29.9658475+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].ValidUntil" 2026-01-20T10:22:29.9658475+00:00 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.