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": "bf582957-2188-4350-8edc-bbcf1d2129a0",
  "BannerID": "cd1bc104-8b6e-48b5-ae90-48ca62d44ecd"
}

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>cd1bc104-8b6e-48b5-ae90-48ca62d44ecd</BannerID>
  <SchoolID>bf582957-2188-4350-8edc-bbcf1d2129a0</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": "6b34cdaa-a8b8-480c-84d8-0bf7d8ff81fe",
  "BannerID": "0eb1e1cb-0e1d-4f58-98e2-363f06d41e09"
}

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>0eb1e1cb-0e1d-4f58-98e2-363f06d41e09</BannerID>
  <SchoolID>6b34cdaa-a8b8-480c-84d8-0bf7d8ff81fe</SchoolID>
</SchoolBanner>