POST api/Common/Course/PACSponsored

Request Information

URI Parameters

None.

Body Parameters

PACSponsoredForCourseUpdateViewModel
NameDescriptionTypeAdditional information
CourseId

globally unique identifier

None.

PACIds

Collection of globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "CourseId": "74839768-a8c1-4e86-b240-8b3194ab48cf",
  "PACIds": [
    "febd1c96-c130-4c32-9be1-fd4e2f67165d",
    "ef7acd23-bb26-4ada-8cf1-c73cb283ae18"
  ]
}

application/xml, text/xml

Sample:
<PACSponsoredForCourseUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Common">
  <CourseId>74839768-a8c1-4e86-b240-8b3194ab48cf</CourseId>
  <PACIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>febd1c96-c130-4c32-9be1-fd4e2f67165d</d2p1:guid>
    <d2p1:guid>ef7acd23-bb26-4ada-8cf1-c73cb283ae18</d2p1:guid>
  </PACIds>
</PACSponsoredForCourseUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

74839768-a8c1-4e86-b240-8b3194ab48cf
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PACIds[0]"

febd1c96-c130-4c32-9be1-fd4e2f67165d
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PACIds[1]"

ef7acd23-bb26-4ada-8cf1-c73cb283ae18
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.