POST api/messageagent

Request Information

URI Parameters

None.

Body Parameters

MessageAgentEmail
NameDescriptionTypeAdditional information
AgentID

integer

None.

BuyerName

string

None.

BuyerEmail

string

None.

BuyerMessage

string

None.

ID

string

None.

leadActivityType

LeadActivityType

None.

productType

ProductType

None.

agentContactType

AgentContactType

None.

mlsPropertyListingID

string

None.

buyerId

integer

None.

active

boolean

None.

agentId

integer

None.

cookieId

globally unique identifier

None.

email

string

None.

Email_Sort

string

None.

phone

string

None.

id

string

None.

leadActivityTypeDescription

string

None.

LeadActivityTypeDescription_Sort

string

None.

name

string

None.

Name_Sort

string

None.

productTypeDescription

string

None.

ProductTypeDescription_Sort

string

None.

timestamp

date

None.

Request Formats

application/json, text/json

Sample:
{
  "AgentID": 1,
  "BuyerName": "sample string 2",
  "BuyerEmail": "sample string 3",
  "BuyerMessage": "sample string 4",
  "ID": "sample string 5",
  "leadActivityType": 11,
  "productType": 1,
  "agentContactType": 1,
  "mlsPropertyListingID": "sample string 6",
  "buyerId": 1,
  "active": true,
  "agentId": 8,
  "cookieId": "aa1f4dfa-efdf-45f5-9f08-86e4f630c3a1",
  "email": "sample string 9",
  "Email_Sort": "sample string 9",
  "phone": "sample string 10",
  "id": "sample string 11",
  "leadActivityTypeDescription": "Message Agent Activity",
  "LeadActivityTypeDescription_Sort": "message agent activity",
  "name": "sample string 12",
  "Name_Sort": "sample string 12",
  "productTypeDescription": "IDX Home Search",
  "ProductTypeDescription_Sort": "idx home search",
  "timestamp": "2021-07-31T06:45:11.3175546+00:00"
}

text/html

Sample:
{"AgentID":1,"BuyerName":"sample string 2","BuyerEmail":"sample string 3","BuyerMessage":"sample string 4","ID":"sample string 5","leadActivityType":11,"productType":1,"agentContactType":1,"mlsPropertyListingID":"sample string 6","buyerId":1,"active":true,"agentId":8,"cookieId":"aa1f4dfa-efdf-45f5-9f08-86e4f630c3a1","email":"sample string 9","Email_Sort":"sample string 9","phone":"sample string 10","id":"sample string 11","leadActivityTypeDescription":"Message Agent Activity","LeadActivityTypeDescription_Sort":"message agent activity","name":"sample string 12","Name_Sort":"sample string 12","productTypeDescription":"IDX Home Search","ProductTypeDescription_Sort":"idx home search","timestamp":"2021-07-31T06:45:11.3175546+00:00"}

application/xml, text/xml

Sample:
<MessageAgentEmail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Emails">
  <Active xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">true</Active>
  <AgentId xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">8</AgentId>
  <BuyerId xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">1</BuyerId>
  <CookieId xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">aa1f4dfa-efdf-45f5-9f08-86e4f630c3a1</CookieId>
  <Email xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">sample string 9</Email>
  <Id xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">sample string 11</Id>
  <LeadActivityType xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">MessageAgentActivity</LeadActivityType>
  <Name xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">sample string 12</Name>
  <Phone xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">sample string 10</Phone>
  <TimeStamp xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">2021-07-31T06:45:11.3175546+00:00</TimeStamp>
  <AgentContactType xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">MessageAgent</AgentContactType>
  <MLSPropertyListingID xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">sample string 6</MLSPropertyListingID>
  <AgentID>1</AgentID>
  <BuyerEmail>sample string 3</BuyerEmail>
  <BuyerMessage>sample string 4</BuyerMessage>
  <BuyerName>sample string 2</BuyerName>
  <ID>sample string 5</ID>
</MessageAgentEmail>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.