POST api/AdmAdvertisement/AddAdmAdvertisement

Request Information

URI Parameters

None.

Body Parameters

AdmAdvertisement
NameDescriptionTypeAdditional information
AdmAdvertisementId

integer

None.

Title

string

None.

Photo

string

None.

admCountryMaster

AdmCountryMaster

None.

AdmCountryMasterId

integer

None.

Link

string

None.

Description

string

None.

StartDate

string

None.

EndDate

string

None.

PaymentStatus

string

None.

AdvertiseStatus

string

None.

Status

string

None.

CreatedDate

string

None.

CreatedBy

string

None.

UpdatedDate

string

None.

UpdatedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AdmAdvertisementId": 1,
  "Title": "sample string 2",
  "Photo": "sample string 3",
  "admCountryMaster": {
    "AdmCountryMasterId": 1,
    "CountryDescription": "sample string 2",
    "Status": "sample string 3",
    "CreatedDate": "sample string 4",
    "CreatedBy": "sample string 5",
    "UpdatedDate": "sample string 6",
    "UpdatedBy": "sample string 7"
  },
  "AdmCountryMasterId": 4,
  "Link": "sample string 5",
  "Description": "sample string 6",
  "StartDate": "sample string 7",
  "EndDate": "sample string 8",
  "PaymentStatus": "sample string 9",
  "AdvertiseStatus": "sample string 10",
  "Status": "sample string 11",
  "CreatedDate": "sample string 12",
  "CreatedBy": "sample string 13",
  "UpdatedDate": "sample string 14",
  "UpdatedBy": "sample string 15"
}

application/xml, text/xml

Sample:
<AdmAdvertisement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocialHiveAPI.Models">
  <AdmAdvertisementId>1</AdmAdvertisementId>
  <AdmCountryMasterId>4</AdmCountryMasterId>
  <AdvertiseStatus>sample string 10</AdvertiseStatus>
  <CreatedBy>sample string 13</CreatedBy>
  <CreatedDate>sample string 12</CreatedDate>
  <Description>sample string 6</Description>
  <EndDate>sample string 8</EndDate>
  <Link>sample string 5</Link>
  <PaymentStatus>sample string 9</PaymentStatus>
  <Photo>sample string 3</Photo>
  <StartDate>sample string 7</StartDate>
  <Status>sample string 11</Status>
  <Title>sample string 2</Title>
  <UpdatedBy>sample string 15</UpdatedBy>
  <UpdatedDate>sample string 14</UpdatedDate>
  <admCountryMaster>
    <AdmCountryMasterId>1</AdmCountryMasterId>
    <CountryDescription>sample string 2</CountryDescription>
    <CreatedBy>sample string 5</CreatedBy>
    <CreatedDate>sample string 4</CreatedDate>
    <Status>sample string 3</Status>
    <UpdatedBy>sample string 7</UpdatedBy>
    <UpdatedDate>sample string 6</UpdatedDate>
  </admCountryMaster>
</AdmAdvertisement>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.