POST api/TSP/Course/{tspCourseId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
tspCourseId | string |
None. |
Body Parameters
TSPCourseCreateUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
CourseId | globally unique identifier |
None. |
|
TSPTrainingId | globally unique identifier |
None. |
|
OtherCourseTitle | string |
None. |
|
IsExpiryDate | boolean |
None. |
|
ExpiryDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "a2bafe30-b8c5-4aa1-8f55-393e7b6e6548", "CourseId": "69e1cf3e-b862-4d04-a2b9-c2d1d8f2d26a", "TSPTrainingId": "9898fa25-92b5-4c04-843d-002c2cbde78d", "OtherCourseTitle": "sample string 4", "IsExpiryDate": true, "ExpiryDate": "2024-12-28T18:09:59.1944972+00:00" }
application/xml, text/xml
Sample:
<TSPCourseCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.TSP.ViewModels"> <CourseId>69e1cf3e-b862-4d04-a2b9-c2d1d8f2d26a</CourseId> <ExpiryDate>2024-12-28T18:09:59.1944972+00:00</ExpiryDate> <Id>a2bafe30-b8c5-4aa1-8f55-393e7b6e6548</Id> <IsExpiryDate>true</IsExpiryDate> <OtherCourseTitle>sample string 4</OtherCourseTitle> <TSPTrainingId>9898fa25-92b5-4c04-843d-002c2cbde78d</TSPTrainingId> </TSPCourseCreateUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" a2bafe30-b8c5-4aa1-8f55-393e7b6e6548 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CourseId" 69e1cf3e-b862-4d04-a2b9-c2d1d8f2d26a --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="TSPTrainingId" 9898fa25-92b5-4c04-843d-002c2cbde78d --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OtherCourseTitle" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IsExpiryDate" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ExpiryDate" 2024-12-28T18:09:59.1944972+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.