POST api/Sponsors/Save

Request Information

URI Parameters

None.

Body Parameters

Sponsors
NameDescriptionTypeAdditional information
SponsorId

integer

None.

IndustryId

integer

None.

CompanyId

integer

None.

PageKey

string

None.

Position

integer

None.

Image

string

None.

ExternalLink

string

None.

AdType

integer

None.

Duration

integer

None.

InternalName

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "SponsorId": 1,
  "IndustryId": 2,
  "CompanyId": 3,
  "PageKey": "sample string 4",
  "Position": 5,
  "Image": "sample string 6",
  "ExternalLink": "sample string 7",
  "AdType": 8,
  "Duration": 9,
  "InternalName": "sample string 10"
}

application/xml, text/xml

Sample:
<Sponsors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <AdType>8</AdType>
  <CompanyId>3</CompanyId>
  <Duration>9</Duration>
  <ExternalLink>sample string 7</ExternalLink>
  <Image>sample string 6</Image>
  <IndustryId>2</IndustryId>
  <InternalName>sample string 10</InternalName>
  <PageKey>sample string 4</PageKey>
  <Position>5</Position>
  <SponsorId>1</SponsorId>
</Sponsors>

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 'Sponsors'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>