POST api/PAC/SingleTrainingDetail
Request Information
URI Parameters
None.
Body Parameters
WorkerTrainingPACSingleCreateUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
WorkerId | globally unique identifier |
None. |
|
CourseId | globally unique identifier |
None. |
|
CertificateNo | string |
None. |
|
DateAttended | date |
None. |
|
ValidUntil | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "39e83cbf-441b-4fe4-bb57-7c9b65d97442", "WorkerId": "346a374e-0edd-487a-b59b-cac7770889ed", "CourseId": "01b24ca8-83ef-45f8-944d-7116301da439", "CertificateNo": "sample string 4", "DateAttended": "2024-12-28T18:10:02.2028342+00:00", "ValidUntil": "2024-12-28T18:10:02.2028342+00:00" }
application/xml, text/xml
Sample:
<WorkerTrainingPACSingleCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker.ViewModels"> <CertificateNo>sample string 4</CertificateNo> <CourseId>01b24ca8-83ef-45f8-944d-7116301da439</CourseId> <DateAttended>2024-12-28T18:10:02.2028342+00:00</DateAttended> <Id>39e83cbf-441b-4fe4-bb57-7c9b65d97442</Id> <ValidUntil>2024-12-28T18:10:02.2028342+00:00</ValidUntil> <WorkerId>346a374e-0edd-487a-b59b-cac7770889ed</WorkerId> </WorkerTrainingPACSingleCreateUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" 39e83cbf-441b-4fe4-bb57-7c9b65d97442 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerId" 346a374e-0edd-487a-b59b-cac7770889ed --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CourseId" 01b24ca8-83ef-45f8-944d-7116301da439 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CertificateNo" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DateAttended" 2024-12-28T18:10:02.2028342+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="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.