POST api/Common/Course/CreateUpdate

Request Information

URI Parameters

None.

Body Parameters

CourseViewModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Code

string

None.

Title

string

None.

CourseCategoryId

globally unique identifier

None.

IsMandatory

boolean

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "7cddfdd2-f096-4761-a306-e63845079edd",
  "Code": "sample string 2",
  "Title": "sample string 3",
  "CourseCategoryId": "0b966800-358e-4ecb-aa64-2ebd67d4439b",
  "IsMandatory": true,
  "IsActive": true
}

application/xml, text/xml

Sample:
<CourseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Common">
  <Code>sample string 2</Code>
  <CourseCategoryId>0b966800-358e-4ecb-aa64-2ebd67d4439b</CourseCategoryId>
  <Id>7cddfdd2-f096-4761-a306-e63845079edd</Id>
  <IsActive>true</IsActive>
  <IsMandatory>true</IsMandatory>
  <Title>sample string 3</Title>
</CourseViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

7cddfdd2-f096-4761-a306-e63845079edd
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Code"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Title"

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

0b966800-358e-4ecb-aa64-2ebd67d4439b
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsMandatory"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsActive"

True
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.