PUT api/Leads

Request Information

URI Parameters

None.

Body Parameters

Collection of LeadModel
NameDescriptionTypeAdditional information
id

string

None.

firstName

string

None.

lastName

string

None.

facebookId

string

None.

email

string

None.

phone

string

None.

agentId

integer

None.

buyerId

integer

None.

cookieId

globally unique identifier

None.

sources

Collection of LeadSourceModel

None.

saSource

string

None.

searchLocation

string

None.

temperature

string

None.

followed

boolean

None.

emailValidationStatus

string

None.

archived

boolean

None.

dateCreated

date

None.

dateFirstFetched

date

None.

dateLastViewed

date

None.

dateModified

date

None.

searchAllianceChargeAmount

decimal number

None.

isNew

boolean

None.

isUnread

boolean

None.

isAnon

boolean

None.

hasViewed

boolean

None.

notes

Collection of LeadNoteModel

None.

lastSearched

date

None.

lastTagged

date

None.

lastMessaged

date

None.

lastShared

date

None.

lastListingView

date

None.

lastActivity

date

None.

lastActivityDescription

string

None.

score

integer

None.

homesViewedCount

integer

None.

searchHistoryCount

integer

None.

favoritesCount

integer

None.

taggedCount

integer

None.

sharedCount

integer

None.

profileImage

string

None.

isActive

boolean

None.

emailValidationDetails

EmailValidationDetails

None.

platforms

Collection of string

None.

partners

Collection of string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": "sample string 1",
    "firstName": "sample string 2",
    "lastName": "sample string 3",
    "facebookId": "sample string 4",
    "email": "sample string 5",
    "phone": "sample string 6",
    "agentId": 7,
    "buyerId": 1,
    "cookieId": "d691c2df-6f41-4f4d-90f8-2ae8dd110514",
    "sources": [
      {
        "type": "sample string 1"
      },
      {
        "type": "sample string 1"
      }
    ],
    "saSource": "sample string 8",
    "searchLocation": "sample string 9",
    "temperature": "sample string 10",
    "followed": true,
    "emailValidationStatus": "sample string 11",
    "archived": true,
    "dateCreated": "2024-12-21T15:51:55.5641045+00:00",
    "dateFirstFetched": "2024-12-21T15:51:55.5641045+00:00",
    "dateLastViewed": "2024-12-21T15:51:55.5641045+00:00",
    "dateModified": "2024-12-21T15:51:55.5641045+00:00",
    "searchAllianceChargeAmount": 1.0,
    "isNew": false,
    "isUnread": true,
    "isAnon": false,
    "hasViewed": true,
    "notes": [
      {
        "dateCreated": "2024-12-21T15:51:55.5641045+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      },
      {
        "dateCreated": "2024-12-21T15:51:55.5641045+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      }
    ],
    "lastSearched": "2024-12-21T15:51:55.5641045+00:00",
    "lastTagged": "2024-12-21T15:51:55.5641045+00:00",
    "lastMessaged": "2024-12-21T15:51:55.5641045+00:00",
    "lastShared": "2024-12-21T15:51:55.5797346+00:00",
    "lastListingView": "2024-12-21T15:51:55.5797346+00:00",
    "lastActivity": "2024-12-21T15:51:55.5797346+00:00",
    "lastActivityDescription": "Viewed a home",
    "score": 14,
    "homesViewedCount": 15,
    "searchHistoryCount": 16,
    "favoritesCount": 17,
    "taggedCount": 18,
    "sharedCount": 19,
    "profileImage": "sample string 20",
    "isActive": true,
    "emailValidationDetails": {
      "PrimaryDetails": {
        "Id": "sample string 3",
        "BuyerId": 2,
        "EmailAddress": "sample string 3",
        "VerificationStatus": 0,
        "RawVerificationResponse": {},
        "LastChecked": "2024-12-21T15:51:55.5797346+00:00"
      },
      "SecondaryDetails": {
        "Id": "sample string 3",
        "BuyerId": 2,
        "EmailAddress": "sample string 3",
        "VerificationStatus": 0,
        "RawVerificationResponse": {},
        "LastChecked": "2024-12-21T15:51:55.5797346+00:00"
      }
    },
    "platforms": [
      "sample string 1",
      "sample string 2"
    ],
    "partners": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "id": "sample string 1",
    "firstName": "sample string 2",
    "lastName": "sample string 3",
    "facebookId": "sample string 4",
    "email": "sample string 5",
    "phone": "sample string 6",
    "agentId": 7,
    "buyerId": 1,
    "cookieId": "d691c2df-6f41-4f4d-90f8-2ae8dd110514",
    "sources": [
      {
        "type": "sample string 1"
      },
      {
        "type": "sample string 1"
      }
    ],
    "saSource": "sample string 8",
    "searchLocation": "sample string 9",
    "temperature": "sample string 10",
    "followed": true,
    "emailValidationStatus": "sample string 11",
    "archived": true,
    "dateCreated": "2024-12-21T15:51:55.5641045+00:00",
    "dateFirstFetched": "2024-12-21T15:51:55.5641045+00:00",
    "dateLastViewed": "2024-12-21T15:51:55.5641045+00:00",
    "dateModified": "2024-12-21T15:51:55.5641045+00:00",
    "searchAllianceChargeAmount": 1.0,
    "isNew": false,
    "isUnread": true,
    "isAnon": false,
    "hasViewed": true,
    "notes": [
      {
        "dateCreated": "2024-12-21T15:51:55.5641045+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      },
      {
        "dateCreated": "2024-12-21T15:51:55.5641045+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      }
    ],
    "lastSearched": "2024-12-21T15:51:55.5641045+00:00",
    "lastTagged": "2024-12-21T15:51:55.5641045+00:00",
    "lastMessaged": "2024-12-21T15:51:55.5641045+00:00",
    "lastShared": "2024-12-21T15:51:55.5797346+00:00",
    "lastListingView": "2024-12-21T15:51:55.5797346+00:00",
    "lastActivity": "2024-12-21T15:51:55.5797346+00:00",
    "lastActivityDescription": "Viewed a home",
    "score": 14,
    "homesViewedCount": 15,
    "searchHistoryCount": 16,
    "favoritesCount": 17,
    "taggedCount": 18,
    "sharedCount": 19,
    "profileImage": "sample string 20",
    "isActive": true,
    "emailValidationDetails": {
      "PrimaryDetails": {
        "Id": "sample string 3",
        "BuyerId": 2,
        "EmailAddress": "sample string 3",
        "VerificationStatus": 0,
        "RawVerificationResponse": {},
        "LastChecked": "2024-12-21T15:51:55.5797346+00:00"
      },
      "SecondaryDetails": {
        "Id": "sample string 3",
        "BuyerId": 2,
        "EmailAddress": "sample string 3",
        "VerificationStatus": 0,
        "RawVerificationResponse": {},
        "LastChecked": "2024-12-21T15:51:55.5797346+00:00"
      }
    },
    "platforms": [
      "sample string 1",
      "sample string 2"
    ],
    "partners": [
      "sample string 1",
      "sample string 2"
    ]
  }
]

text/html

Sample:
[{"id":"sample string 1","firstName":"sample string 2","lastName":"sample string 3","facebookId":"sample string 4","email":"sample string 5","phone":"sample string 6","agentId":7,"buyerId":1,"cookieId":"d691c2df-6f41-4f4d-90f8-2ae8dd110514","sources":[{"type":"sample string 1"},{"type":"sample string 1"}],"saSource":"sample string 8","searchLocation":"sample string 9","temperature":"sample string 10","followed":true,"emailValidationStatus":"sample string 11","archived":true,"dateCreated":"2024-12-21T15:51:55.5641045+00:00","dateFirstFetched":"2024-12-21T15:51:55.5641045+00:00","dateLastViewed":"2024-12-21T15:51:55.5641045+00:00","dateModified":"2024-12-21T15:51:55.5641045+00:00","searchAllianceChargeAmount":1.0,"isNew":false,"isUnread":true,"isAnon":false,"hasViewed":true,"notes":[{"dateCreated":"2024-12-21T15:51:55.5641045+00:00","note":"sample string 1","image":"sample string 2"},{"dateCreated":"2024-12-21T15:51:55.5641045+00:00","note":"sample string 1","image":"sample string 2"}],"lastSearched":"2024-12-21T15:51:55.5641045+00:00","lastTagged":"2024-12-21T15:51:55.5641045+00:00","lastMessaged":"2024-12-21T15:51:55.5641045+00:00","lastShared":"2024-12-21T15:51:55.5797346+00:00","lastListingView":"2024-12-21T15:51:55.5797346+00:00","lastActivity":"2024-12-21T15:51:55.5797346+00:00","lastActivityDescription":"Viewed a home","score":14,"homesViewedCount":15,"searchHistoryCount":16,"favoritesCount":17,"taggedCount":18,"sharedCount":19,"profileImage":"sample string 20","isActive":true,"emailValidationDetails":{"PrimaryDetails":{"Id":"sample string 3","BuyerId":2,"EmailAddress":"sample string 3","VerificationStatus":0,"RawVerificationResponse":{},"LastChecked":"2024-12-21T15:51:55.5797346+00:00"},"SecondaryDetails":{"Id":"sample string 3","BuyerId":2,"EmailAddress":"sample string 3","VerificationStatus":0,"RawVerificationResponse":{},"LastChecked":"2024-12-21T15:51:55.5797346+00:00"}},"platforms":["sample string 1","sample string 2"],"partners":["sample string 1","sample string 2"]},{"id":"sample string 1","firstName":"sample string 2","lastName":"sample string 3","facebookId":"sample string 4","email":"sample string 5","phone":"sample string 6","agentId":7,"buyerId":1,"cookieId":"d691c2df-6f41-4f4d-90f8-2ae8dd110514","sources":[{"type":"sample string 1"},{"type":"sample string 1"}],"saSource":"sample string 8","searchLocation":"sample string 9","temperature":"sample string 10","followed":true,"emailValidationStatus":"sample string 11","archived":true,"dateCreated":"2024-12-21T15:51:55.5641045+00:00","dateFirstFetched":"2024-12-21T15:51:55.5641045+00:00","dateLastViewed":"2024-12-21T15:51:55.5641045+00:00","dateModified":"2024-12-21T15:51:55.5641045+00:00","searchAllianceChargeAmount":1.0,"isNew":false,"isUnread":true,"isAnon":false,"hasViewed":true,"notes":[{"dateCreated":"2024-12-21T15:51:55.5641045+00:00","note":"sample string 1","image":"sample string 2"},{"dateCreated":"2024-12-21T15:51:55.5641045+00:00","note":"sample string 1","image":"sample string 2"}],"lastSearched":"2024-12-21T15:51:55.5641045+00:00","lastTagged":"2024-12-21T15:51:55.5641045+00:00","lastMessaged":"2024-12-21T15:51:55.5641045+00:00","lastShared":"2024-12-21T15:51:55.5797346+00:00","lastListingView":"2024-12-21T15:51:55.5797346+00:00","lastActivity":"2024-12-21T15:51:55.5797346+00:00","lastActivityDescription":"Viewed a home","score":14,"homesViewedCount":15,"searchHistoryCount":16,"favoritesCount":17,"taggedCount":18,"sharedCount":19,"profileImage":"sample string 20","isActive":true,"emailValidationDetails":{"PrimaryDetails":{"Id":"sample string 3","BuyerId":2,"EmailAddress":"sample string 3","VerificationStatus":0,"RawVerificationResponse":{},"LastChecked":"2024-12-21T15:51:55.5797346+00:00"},"SecondaryDetails":{"Id":"sample string 3","BuyerId":2,"EmailAddress":"sample string 3","VerificationStatus":0,"RawVerificationResponse":{},"LastChecked":"2024-12-21T15:51:55.5797346+00:00"}},"platforms":["sample string 1","sample string 2"],"partners":["sample string 1","sample string 2"]}]

application/xml, text/xml

Sample:
<ArrayOfLeadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <LeadModel>
    <AgentId>7</AgentId>
    <Archived>true</Archived>
    <BuyerId>1</BuyerId>
    <CookieId>d691c2df-6f41-4f4d-90f8-2ae8dd110514</CookieId>
    <DateCreated>2024-12-21T15:51:55.5641045+00:00</DateCreated>
    <DateFirstFetched>2024-12-21T15:51:55.5641045+00:00</DateFirstFetched>
    <DateLastViewed>2024-12-21T15:51:55.5641045+00:00</DateLastViewed>
    <DateModified>2024-12-21T15:51:55.5641045+00:00</DateModified>
    <Email>sample string 5</Email>
    <EmailValidationDetails>
      <PrimaryDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
        <d4p1:BuyerId>2</d4p1:BuyerId>
        <d4p1:EmailAddress>sample string 3</d4p1:EmailAddress>
        <d4p1:Id>sample string 3</d4p1:Id>
        <d4p1:LastChecked>2024-12-21T15:51:55.5797346+00:00</d4p1:LastChecked>
        <d4p1:RawVerificationResponse />
        <d4p1:VerificationStatus>Unchecked</d4p1:VerificationStatus>
      </PrimaryDetails>
      <SecondaryDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
        <d4p1:BuyerId>2</d4p1:BuyerId>
        <d4p1:EmailAddress>sample string 3</d4p1:EmailAddress>
        <d4p1:Id>sample string 3</d4p1:Id>
        <d4p1:LastChecked>2024-12-21T15:51:55.5797346+00:00</d4p1:LastChecked>
        <d4p1:RawVerificationResponse />
        <d4p1:VerificationStatus>Unchecked</d4p1:VerificationStatus>
      </SecondaryDetails>
    </EmailValidationDetails>
    <EmailValidationStatus>sample string 11</EmailValidationStatus>
    <FacebookId>sample string 4</FacebookId>
    <FavoritesCount>17</FavoritesCount>
    <FirstName>sample string 2</FirstName>
    <Followed>true</Followed>
    <HasViewed>true</HasViewed>
    <HomesViewedCount>15</HomesViewedCount>
    <Id>sample string 1</Id>
    <IsActive>true</IsActive>
    <IsUnread>true</IsUnread>
    <LastActivity>2024-12-21T15:51:55.5797346+00:00</LastActivity>
    <LastListingView>2024-12-21T15:51:55.5797346+00:00</LastListingView>
    <LastMessaged>2024-12-21T15:51:55.5641045+00:00</LastMessaged>
    <LastName>sample string 3</LastName>
    <LastSearched>2024-12-21T15:51:55.5641045+00:00</LastSearched>
    <LastShared>2024-12-21T15:51:55.5797346+00:00</LastShared>
    <LastTagged>2024-12-21T15:51:55.5641045+00:00</LastTagged>
    <Notes>
      <LeadNoteModel>
        <DateCreated>2024-12-21T15:51:55.5641045+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
      <LeadNoteModel>
        <DateCreated>2024-12-21T15:51:55.5641045+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
    </Notes>
    <Partners xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Partners>
    <Phone>sample string 6</Phone>
    <Platforms xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Platforms>
    <ProfileImage>sample string 20</ProfileImage>
    <Score>14</Score>
    <SearchAllianceChargeAmount>1</SearchAllianceChargeAmount>
    <SearchAllianceSource>sample string 8</SearchAllianceSource>
    <SearchHistoryCount>16</SearchHistoryCount>
    <SearchLocation>sample string 9</SearchLocation>
    <SharedCount>19</SharedCount>
    <Sources>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
    </Sources>
    <TaggedCount>18</TaggedCount>
    <Temperature>sample string 10</Temperature>
  </LeadModel>
  <LeadModel>
    <AgentId>7</AgentId>
    <Archived>true</Archived>
    <BuyerId>1</BuyerId>
    <CookieId>d691c2df-6f41-4f4d-90f8-2ae8dd110514</CookieId>
    <DateCreated>2024-12-21T15:51:55.5641045+00:00</DateCreated>
    <DateFirstFetched>2024-12-21T15:51:55.5641045+00:00</DateFirstFetched>
    <DateLastViewed>2024-12-21T15:51:55.5641045+00:00</DateLastViewed>
    <DateModified>2024-12-21T15:51:55.5641045+00:00</DateModified>
    <Email>sample string 5</Email>
    <EmailValidationDetails>
      <PrimaryDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
        <d4p1:BuyerId>2</d4p1:BuyerId>
        <d4p1:EmailAddress>sample string 3</d4p1:EmailAddress>
        <d4p1:Id>sample string 3</d4p1:Id>
        <d4p1:LastChecked>2024-12-21T15:51:55.5797346+00:00</d4p1:LastChecked>
        <d4p1:RawVerificationResponse />
        <d4p1:VerificationStatus>Unchecked</d4p1:VerificationStatus>
      </PrimaryDetails>
      <SecondaryDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
        <d4p1:BuyerId>2</d4p1:BuyerId>
        <d4p1:EmailAddress>sample string 3</d4p1:EmailAddress>
        <d4p1:Id>sample string 3</d4p1:Id>
        <d4p1:LastChecked>2024-12-21T15:51:55.5797346+00:00</d4p1:LastChecked>
        <d4p1:RawVerificationResponse />
        <d4p1:VerificationStatus>Unchecked</d4p1:VerificationStatus>
      </SecondaryDetails>
    </EmailValidationDetails>
    <EmailValidationStatus>sample string 11</EmailValidationStatus>
    <FacebookId>sample string 4</FacebookId>
    <FavoritesCount>17</FavoritesCount>
    <FirstName>sample string 2</FirstName>
    <Followed>true</Followed>
    <HasViewed>true</HasViewed>
    <HomesViewedCount>15</HomesViewedCount>
    <Id>sample string 1</Id>
    <IsActive>true</IsActive>
    <IsUnread>true</IsUnread>
    <LastActivity>2024-12-21T15:51:55.5797346+00:00</LastActivity>
    <LastListingView>2024-12-21T15:51:55.5797346+00:00</LastListingView>
    <LastMessaged>2024-12-21T15:51:55.5641045+00:00</LastMessaged>
    <LastName>sample string 3</LastName>
    <LastSearched>2024-12-21T15:51:55.5641045+00:00</LastSearched>
    <LastShared>2024-12-21T15:51:55.5797346+00:00</LastShared>
    <LastTagged>2024-12-21T15:51:55.5641045+00:00</LastTagged>
    <Notes>
      <LeadNoteModel>
        <DateCreated>2024-12-21T15:51:55.5641045+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
      <LeadNoteModel>
        <DateCreated>2024-12-21T15:51:55.5641045+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
    </Notes>
    <Partners xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Partners>
    <Phone>sample string 6</Phone>
    <Platforms xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Platforms>
    <ProfileImage>sample string 20</ProfileImage>
    <Score>14</Score>
    <SearchAllianceChargeAmount>1</SearchAllianceChargeAmount>
    <SearchAllianceSource>sample string 8</SearchAllianceSource>
    <SearchHistoryCount>16</SearchHistoryCount>
    <SearchLocation>sample string 9</SearchLocation>
    <SharedCount>19</SharedCount>
    <Sources>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
    </Sources>
    <TaggedCount>18</TaggedCount>
    <Temperature>sample string 10</Temperature>
  </LeadModel>
</ArrayOfLeadModel>

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 'LeadModel[]'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.