POST api/SchoolBanners

Request Information

URI Parameters

None.

Body Parameters

SchoolBanner
NameDescriptionTypeAdditional information
SchoolID

globally unique identifier

None.

BannerID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "SchoolID": "b7766077-ff94-4b9b-8b03-3902678ab82c",
  "BannerID": "e1bff4fb-2263-4e52-b1ec-03ada21c7cf4"
}

application/xml, text/xml

Sample:
<SchoolBanner xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParentAPI.Models">
  <BannerID>e1bff4fb-2263-4e52-b1ec-03ada21c7cf4</BannerID>
  <SchoolID>b7766077-ff94-4b9b-8b03-3902678ab82c</SchoolID>
</SchoolBanner>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SchoolBanner'.

Response Information

Resource Description

SchoolBanner
NameDescriptionTypeAdditional information
SchoolID

globally unique identifier

None.

BannerID

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "SchoolID": "541b0ed6-d9f0-4fc9-adc0-7a6681cabc72",
  "BannerID": "ffb557a7-886f-4c88-85ce-d07acbab2dff"
}

application/xml, text/xml

Sample:
<SchoolBanner xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParentAPI.Models">
  <BannerID>ffb557a7-886f-4c88-85ce-d07acbab2dff</BannerID>
  <SchoolID>541b0ed6-d9f0-4fc9-adc0-7a6681cabc72</SchoolID>
</SchoolBanner>