POST api/agentlistingsite

Request Information

URI Parameters

None.

Body Parameters

AgentListingSiteInputModel
NameDescriptionTypeAdditional information
id

globally unique identifier

None.

listingId

string

None.

templateId

string

None.

stockDomain

string

None.

customDomain

string

None.

slug

string

None.

templateCustomizations

Object

None.

listingCustomizations

Object

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "5194e86d-7f2c-4be1-9f08-27a46ebf1529",
  "listingId": "sample string 1",
  "templateId": "sample string 2",
  "stockDomain": "sample string 3",
  "customDomain": "sample string 4",
  "slug": "sample string 5",
  "templateCustomizations": {},
  "listingCustomizations": {}
}

text/html

Sample:
{"id":"5194e86d-7f2c-4be1-9f08-27a46ebf1529","listingId":"sample string 1","templateId":"sample string 2","stockDomain":"sample string 3","customDomain":"sample string 4","slug":"sample string 5","templateCustomizations":{},"listingCustomizations":{}}

application/xml, text/xml

Sample:
<AgentListingSiteInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <AgentId>8</AgentId>
  <ChargeId>sample string 9</ChargeId>
  <CustomDomain>sample string 4</CustomDomain>
  <Id>5194e86d-7f2c-4be1-9f08-27a46ebf1529</Id>
  <ListingCustomizations />
  <ListingId>sample string 1</ListingId>
  <Slug>sample string 5</Slug>
  <StockDomain>sample string 3</StockDomain>
  <TemplateCustomizations />
  <TemplateId>sample string 2</TemplateId>
</AgentListingSiteInputModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.