POST api/PAC/TrainingDetail
Request Information
URI Parameters
None.
Body Parameters
WorkerTrainingPACCreateUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
WorkerId | globally unique identifier |
None. |
|
WorkerTrainings | Collection of WorkerTrainingPAC |
None. |
Request Formats
application/json, text/json
Sample:
{ "WorkerId": "1f3fc954-3222-4a6e-91d2-445f832651cc", "WorkerTrainings": [ { "Id": "f925d28b-6070-487f-b772-212c08487ab8", "CourseId": "a1c713f4-89b1-482e-959e-1c04b8ec0089", "CertificateNo": "sample string 3", "DateAttended": "2024-12-28T18:10:02.2028342+00:00", "ValidUntil": "2024-12-28T18:10:02.2028342+00:00" }, { "Id": "f925d28b-6070-487f-b772-212c08487ab8", "CourseId": "a1c713f4-89b1-482e-959e-1c04b8ec0089", "CertificateNo": "sample string 3", "DateAttended": "2024-12-28T18:10:02.2028342+00:00", "ValidUntil": "2024-12-28T18:10:02.2028342+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>1f3fc954-3222-4a6e-91d2-445f832651cc</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>a1c713f4-89b1-482e-959e-1c04b8ec0089</d2p1:CourseId> <d2p1:DateAttended>2024-12-28T18:10:02.2028342+00:00</d2p1:DateAttended> <d2p1:Id>f925d28b-6070-487f-b772-212c08487ab8</d2p1:Id> <d2p1:ValidUntil>2024-12-28T18:10:02.2028342+00:00</d2p1:ValidUntil> </d2p1:WorkerTrainingPAC> <d2p1:WorkerTrainingPAC> <d2p1:CertificateNo>sample string 3</d2p1:CertificateNo> <d2p1:CourseId>a1c713f4-89b1-482e-959e-1c04b8ec0089</d2p1:CourseId> <d2p1:DateAttended>2024-12-28T18:10:02.2028342+00:00</d2p1:DateAttended> <d2p1:Id>f925d28b-6070-487f-b772-212c08487ab8</d2p1:Id> <d2p1:ValidUntil>2024-12-28T18:10:02.2028342+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" 1f3fc954-3222-4a6e-91d2-445f832651cc --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].Id" f925d28b-6070-487f-b772-212c08487ab8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].CourseId" a1c713f4-89b1-482e-959e-1c04b8ec0089 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].CertificateNo" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].DateAttended" 2024-12-28T18:10:02.2028342+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[0].ValidUntil" 2024-12-28T18:10:02.2028342+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].Id" f925d28b-6070-487f-b772-212c08487ab8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].CourseId" a1c713f4-89b1-482e-959e-1c04b8ec0089 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].CertificateNo" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].DateAttended" 2024-12-28T18:10:02.2028342+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerTrainings[1].ValidUntil" 2024-12-28T18:10:02.2028342+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.