POST api/AgentListing

Request Information

URI Parameters

None.

Body Parameters

AgentListingModel
NameDescriptionTypeAdditional information
Id

integer

None.

MlsId

string

None.

MLSListingId

string

None.

ListingAgentId

integer

Required

TotalBaths

decimal number

Required

TotalBedrooms

decimal number

Required

Description

string

Required

Price

integer

Required

VideoURL

string

None.

Headline

string

Required

FeaturedPhoto

string

Required

PhotoAlbum

string

None.

LastUpdateDate

date

None.

Features

string

None.

Schools

string

None.

AllowComments

boolean

None.

DateInserted

date

None.

ListingUrl

URI

None.

ShouldDisplayAddress

boolean

None.

DisplayStreetAddress

string

None.

AgentDirectoryUrl

string

None.

CoverPhoto

CoverPhotoModel

None.

PropertyStatusType

PropertyStatusType

None.

PropertyType

PropertyType

Required

ListingPhotos

Collection of ListingPhotoModel

None.

Address

AddressModel

Required

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'NavigateUrl' on 'NPlay.Common.Models.Services.CoverPhotoModel'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'NavigateUrl' on 'NPlay.Common.Models.Services.CoverPhotoModel'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Error getting value from 'NavigateUrl' on 'NPlay.Common.Models.Services.CoverPhotoModel'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'NPlay.Common.Models.Services.CoverPhotoModel' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'NPlay.Common.Models.Services.CoverPhotoModel' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.