POST api/service/listingleadads/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

None.

Body Parameters

ListingLeadAdsServiceProvisioningModel
NameDescriptionTypeAdditional information
mlsId

string

None.

mlsOfficeId

string

None.

mlsAgentId

string

None.

agentId

integer

None.

adSetting

ContinuouslyRunningAdsSettingModel

None.

businessPages

Collection of FacebookPageModel

None.

termsChecked

boolean

None.

monthlyPrice

decimal number

None.

serviceType

ServiceType

None.

setupDate

date

None.

mlsSetupRequired

boolean

None.

mlsSetupCompleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "mlsId": "sample string 1",
  "mlsOfficeId": "sample string 2",
  "mlsAgentId": "sample string 3",
  "agentId": 4,
  "adSetting": {
    "agentId": 1,
    "pageId": "sample string 2",
    "includeOfficeListings": true,
    "geoLocations": "sample string 4",
    "adTypeId": 5
  },
  "businessPages": [
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "hasSweepstakesTab": true,
      "agentDirectory": true,
      "propertySearch": true,
      "homeValue": true,
      "isBusinessClaimed": true,
      "adTermsChecked": true,
      "sweepstakesDate": "2021-08-01T03:23:56.2495078+00:00",
      "agentProfileAddDate": "2021-08-01T03:23:56.2495078+00:00",
      "propertySearchAddDate": "2021-08-01T03:23:56.2495078+00:00",
      "homeValueDate": "2021-08-01T03:23:56.2495078+00:00",
      "agentProfilePost": true
    },
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "hasSweepstakesTab": true,
      "agentDirectory": true,
      "propertySearch": true,
      "homeValue": true,
      "isBusinessClaimed": true,
      "adTermsChecked": true,
      "sweepstakesDate": "2021-08-01T03:23:56.2495078+00:00",
      "agentProfileAddDate": "2021-08-01T03:23:56.2495078+00:00",
      "propertySearchAddDate": "2021-08-01T03:23:56.2495078+00:00",
      "homeValueDate": "2021-08-01T03:23:56.2495078+00:00",
      "agentProfilePost": true
    }
  ],
  "termsChecked": true,
  "monthlyPrice": 1.0,
  "serviceType": 0,
  "setupDate": "2021-08-01T03:23:56.2495078+00:00",
  "mlsSetupRequired": true,
  "mlsSetupCompleted": true
}

text/html

Sample:
{"mlsId":"sample string 1","mlsOfficeId":"sample string 2","mlsAgentId":"sample string 3","agentId":4,"adSetting":{"agentId":1,"pageId":"sample string 2","includeOfficeListings":true,"geoLocations":"sample string 4","adTypeId":5},"businessPages":[{"id":"sample string 1","name":"sample string 2","hasSweepstakesTab":true,"agentDirectory":true,"propertySearch":true,"homeValue":true,"isBusinessClaimed":true,"adTermsChecked":true,"sweepstakesDate":"2021-08-01T03:23:56.2495078+00:00","agentProfileAddDate":"2021-08-01T03:23:56.2495078+00:00","propertySearchAddDate":"2021-08-01T03:23:56.2495078+00:00","homeValueDate":"2021-08-01T03:23:56.2495078+00:00","agentProfilePost":true},{"id":"sample string 1","name":"sample string 2","hasSweepstakesTab":true,"agentDirectory":true,"propertySearch":true,"homeValue":true,"isBusinessClaimed":true,"adTermsChecked":true,"sweepstakesDate":"2021-08-01T03:23:56.2495078+00:00","agentProfileAddDate":"2021-08-01T03:23:56.2495078+00:00","propertySearchAddDate":"2021-08-01T03:23:56.2495078+00:00","homeValueDate":"2021-08-01T03:23:56.2495078+00:00","agentProfilePost":true}],"termsChecked":true,"monthlyPrice":1.0,"serviceType":0,"setupDate":"2021-08-01T03:23:56.2495078+00:00","mlsSetupRequired":true,"mlsSetupCompleted":true}

application/xml, text/xml

Sample:
<ListingLeadAdsServiceProvisioningModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <MlsSetupCompleted>true</MlsSetupCompleted>
  <MlsSetupRequired>true</MlsSetupRequired>
  <ServiceType>AgentDirectory</ServiceType>
  <SetupDate>2021-08-01T03:23:56.2495078+00:00</SetupDate>
  <AdSetting>
    <AdTypeId>5</AdTypeId>
    <AgentId>1</AgentId>
    <GeoLocations>sample string 4</GeoLocations>
    <IncludeOfficeListings>true</IncludeOfficeListings>
    <PageId>sample string 2</PageId>
  </AdSetting>
  <AgentId>4</AgentId>
  <BusinessPages>
    <FacebookPageModel>
      <AdTermsChecked>true</AdTermsChecked>
      <AgentDirectory>true</AgentDirectory>
      <AgentProfileAddDate>2021-08-01T03:23:56.2495078+00:00</AgentProfileAddDate>
      <AgentProfilePost>true</AgentProfilePost>
      <HasSweepstakesTab>true</HasSweepstakesTab>
      <HomeValue>true</HomeValue>
      <HomeValueDate>2021-08-01T03:23:56.2495078+00:00</HomeValueDate>
      <Id>sample string 1</Id>
      <IsBusinessClaimed>true</IsBusinessClaimed>
      <Name>sample string 2</Name>
      <PropertySearch>true</PropertySearch>
      <PropertySearchAddDate>2021-08-01T03:23:56.2495078+00:00</PropertySearchAddDate>
      <SweepstakesDate>2021-08-01T03:23:56.2495078+00:00</SweepstakesDate>
    </FacebookPageModel>
    <FacebookPageModel>
      <AdTermsChecked>true</AdTermsChecked>
      <AgentDirectory>true</AgentDirectory>
      <AgentProfileAddDate>2021-08-01T03:23:56.2495078+00:00</AgentProfileAddDate>
      <AgentProfilePost>true</AgentProfilePost>
      <HasSweepstakesTab>true</HasSweepstakesTab>
      <HomeValue>true</HomeValue>
      <HomeValueDate>2021-08-01T03:23:56.2495078+00:00</HomeValueDate>
      <Id>sample string 1</Id>
      <IsBusinessClaimed>true</IsBusinessClaimed>
      <Name>sample string 2</Name>
      <PropertySearch>true</PropertySearch>
      <PropertySearchAddDate>2021-08-01T03:23:56.2495078+00:00</PropertySearchAddDate>
      <SweepstakesDate>2021-08-01T03:23:56.2495078+00:00</SweepstakesDate>
    </FacebookPageModel>
  </BusinessPages>
  <MonthlyPrice>1</MonthlyPrice>
  <TermsChecked>true</TermsChecked>
  <MlsAgentId>sample string 3</MlsAgentId>
  <MlsId>sample string 1</MlsId>
  <MlsOfficeId>sample string 2</MlsOfficeId>
</ListingLeadAdsServiceProvisioningModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.