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.

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.

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": "7caaae14-d294-4d38-978a-b90c7171b3ee",
    "sources": [
      {
        "type": "sample string 1"
      },
      {
        "type": "sample string 1"
      }
    ],
    "saSource": "sample string 8",
    "searchLocation": "sample string 9",
    "temperature": "sample string 10",
    "followed": true,
    "archived": true,
    "dateCreated": "2021-07-31T05:59:36.0824895+00:00",
    "dateFirstFetched": "2021-07-31T05:59:36.0824895+00:00",
    "dateLastViewed": "2021-07-31T05:59:36.0824895+00:00",
    "dateModified": "2021-07-31T05:59:36.0824895+00:00",
    "searchAllianceChargeAmount": 1.0,
    "isNew": false,
    "isUnread": true,
    "isAnon": false,
    "hasViewed": true,
    "notes": [
      {
        "dateCreated": "2021-07-31T05:59:36.0981392+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      },
      {
        "dateCreated": "2021-07-31T05:59:36.0981392+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      }
    ],
    "lastSearched": "2021-07-31T05:59:36.0981392+00:00",
    "lastTagged": "2021-07-31T05:59:36.0981392+00:00",
    "lastMessaged": "2021-07-31T05:59:36.0981392+00:00",
    "lastShared": "2021-07-31T05:59:36.0981392+00:00",
    "lastListingView": "2021-07-31T05:59:36.0981392+00:00",
    "lastActivity": "2021-07-31T05:59:36.0981392+00:00",
    "lastActivityDescription": "Searched for a home",
    "score": 13,
    "homesViewedCount": 14,
    "searchHistoryCount": 15,
    "favoritesCount": 16,
    "taggedCount": 17,
    "sharedCount": 18,
    "profileImage": "sample string 19",
    "isActive": true
  },
  {
    "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": "7caaae14-d294-4d38-978a-b90c7171b3ee",
    "sources": [
      {
        "type": "sample string 1"
      },
      {
        "type": "sample string 1"
      }
    ],
    "saSource": "sample string 8",
    "searchLocation": "sample string 9",
    "temperature": "sample string 10",
    "followed": true,
    "archived": true,
    "dateCreated": "2021-07-31T05:59:36.0824895+00:00",
    "dateFirstFetched": "2021-07-31T05:59:36.0824895+00:00",
    "dateLastViewed": "2021-07-31T05:59:36.0824895+00:00",
    "dateModified": "2021-07-31T05:59:36.0824895+00:00",
    "searchAllianceChargeAmount": 1.0,
    "isNew": false,
    "isUnread": true,
    "isAnon": false,
    "hasViewed": true,
    "notes": [
      {
        "dateCreated": "2021-07-31T05:59:36.0981392+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      },
      {
        "dateCreated": "2021-07-31T05:59:36.0981392+00:00",
        "note": "sample string 1",
        "image": "sample string 2"
      }
    ],
    "lastSearched": "2021-07-31T05:59:36.0981392+00:00",
    "lastTagged": "2021-07-31T05:59:36.0981392+00:00",
    "lastMessaged": "2021-07-31T05:59:36.0981392+00:00",
    "lastShared": "2021-07-31T05:59:36.0981392+00:00",
    "lastListingView": "2021-07-31T05:59:36.0981392+00:00",
    "lastActivity": "2021-07-31T05:59:36.0981392+00:00",
    "lastActivityDescription": "Searched for a home",
    "score": 13,
    "homesViewedCount": 14,
    "searchHistoryCount": 15,
    "favoritesCount": 16,
    "taggedCount": 17,
    "sharedCount": 18,
    "profileImage": "sample string 19",
    "isActive": true
  }
]

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":"7caaae14-d294-4d38-978a-b90c7171b3ee","sources":[{"type":"sample string 1"},{"type":"sample string 1"}],"saSource":"sample string 8","searchLocation":"sample string 9","temperature":"sample string 10","followed":true,"archived":true,"dateCreated":"2021-07-31T05:59:36.0824895+00:00","dateFirstFetched":"2021-07-31T05:59:36.0824895+00:00","dateLastViewed":"2021-07-31T05:59:36.0824895+00:00","dateModified":"2021-07-31T05:59:36.0824895+00:00","searchAllianceChargeAmount":1.0,"isNew":false,"isUnread":true,"isAnon":false,"hasViewed":true,"notes":[{"dateCreated":"2021-07-31T05:59:36.0981392+00:00","note":"sample string 1","image":"sample string 2"},{"dateCreated":"2021-07-31T05:59:36.0981392+00:00","note":"sample string 1","image":"sample string 2"}],"lastSearched":"2021-07-31T05:59:36.0981392+00:00","lastTagged":"2021-07-31T05:59:36.0981392+00:00","lastMessaged":"2021-07-31T05:59:36.0981392+00:00","lastShared":"2021-07-31T05:59:36.0981392+00:00","lastListingView":"2021-07-31T05:59:36.0981392+00:00","lastActivity":"2021-07-31T05:59:36.0981392+00:00","lastActivityDescription":"Searched for a home","score":13,"homesViewedCount":14,"searchHistoryCount":15,"favoritesCount":16,"taggedCount":17,"sharedCount":18,"profileImage":"sample string 19","isActive":true},{"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":"7caaae14-d294-4d38-978a-b90c7171b3ee","sources":[{"type":"sample string 1"},{"type":"sample string 1"}],"saSource":"sample string 8","searchLocation":"sample string 9","temperature":"sample string 10","followed":true,"archived":true,"dateCreated":"2021-07-31T05:59:36.0824895+00:00","dateFirstFetched":"2021-07-31T05:59:36.0824895+00:00","dateLastViewed":"2021-07-31T05:59:36.0824895+00:00","dateModified":"2021-07-31T05:59:36.0824895+00:00","searchAllianceChargeAmount":1.0,"isNew":false,"isUnread":true,"isAnon":false,"hasViewed":true,"notes":[{"dateCreated":"2021-07-31T05:59:36.0981392+00:00","note":"sample string 1","image":"sample string 2"},{"dateCreated":"2021-07-31T05:59:36.0981392+00:00","note":"sample string 1","image":"sample string 2"}],"lastSearched":"2021-07-31T05:59:36.0981392+00:00","lastTagged":"2021-07-31T05:59:36.0981392+00:00","lastMessaged":"2021-07-31T05:59:36.0981392+00:00","lastShared":"2021-07-31T05:59:36.0981392+00:00","lastListingView":"2021-07-31T05:59:36.0981392+00:00","lastActivity":"2021-07-31T05:59:36.0981392+00:00","lastActivityDescription":"Searched for a home","score":13,"homesViewedCount":14,"searchHistoryCount":15,"favoritesCount":16,"taggedCount":17,"sharedCount":18,"profileImage":"sample string 19","isActive":true}]

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>7caaae14-d294-4d38-978a-b90c7171b3ee</CookieId>
    <DateCreated>2021-07-31T05:59:36.0824895+00:00</DateCreated>
    <DateFirstFetched>2021-07-31T05:59:36.0824895+00:00</DateFirstFetched>
    <DateLastViewed>2021-07-31T05:59:36.0824895+00:00</DateLastViewed>
    <DateModified>2021-07-31T05:59:36.0824895+00:00</DateModified>
    <Email>sample string 5</Email>
    <FacebookId>sample string 4</FacebookId>
    <FavoritesCount>16</FavoritesCount>
    <FirstName>sample string 2</FirstName>
    <Followed>true</Followed>
    <HasViewed>true</HasViewed>
    <HomesViewedCount>14</HomesViewedCount>
    <Id>sample string 1</Id>
    <IsActive>true</IsActive>
    <IsUnread>true</IsUnread>
    <LastActivity>2021-07-31T05:59:36.0981392+00:00</LastActivity>
    <LastListingView>2021-07-31T05:59:36.0981392+00:00</LastListingView>
    <LastMessaged>2021-07-31T05:59:36.0981392+00:00</LastMessaged>
    <LastName>sample string 3</LastName>
    <LastSearched>2021-07-31T05:59:36.0981392+00:00</LastSearched>
    <LastShared>2021-07-31T05:59:36.0981392+00:00</LastShared>
    <LastTagged>2021-07-31T05:59:36.0981392+00:00</LastTagged>
    <Notes>
      <LeadNoteModel>
        <DateCreated>2021-07-31T05:59:36.0981392+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
      <LeadNoteModel>
        <DateCreated>2021-07-31T05:59:36.0981392+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
    </Notes>
    <Phone>sample string 6</Phone>
    <ProfileImage>sample string 19</ProfileImage>
    <Score>13</Score>
    <SearchAllianceChargeAmount>1</SearchAllianceChargeAmount>
    <SearchAllianceSource>sample string 8</SearchAllianceSource>
    <SearchHistoryCount>15</SearchHistoryCount>
    <SearchLocation>sample string 9</SearchLocation>
    <SharedCount>18</SharedCount>
    <Sources>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
    </Sources>
    <TaggedCount>17</TaggedCount>
    <Temperature>sample string 10</Temperature>
  </LeadModel>
  <LeadModel>
    <AgentId>7</AgentId>
    <Archived>true</Archived>
    <BuyerId>1</BuyerId>
    <CookieId>7caaae14-d294-4d38-978a-b90c7171b3ee</CookieId>
    <DateCreated>2021-07-31T05:59:36.0824895+00:00</DateCreated>
    <DateFirstFetched>2021-07-31T05:59:36.0824895+00:00</DateFirstFetched>
    <DateLastViewed>2021-07-31T05:59:36.0824895+00:00</DateLastViewed>
    <DateModified>2021-07-31T05:59:36.0824895+00:00</DateModified>
    <Email>sample string 5</Email>
    <FacebookId>sample string 4</FacebookId>
    <FavoritesCount>16</FavoritesCount>
    <FirstName>sample string 2</FirstName>
    <Followed>true</Followed>
    <HasViewed>true</HasViewed>
    <HomesViewedCount>14</HomesViewedCount>
    <Id>sample string 1</Id>
    <IsActive>true</IsActive>
    <IsUnread>true</IsUnread>
    <LastActivity>2021-07-31T05:59:36.0981392+00:00</LastActivity>
    <LastListingView>2021-07-31T05:59:36.0981392+00:00</LastListingView>
    <LastMessaged>2021-07-31T05:59:36.0981392+00:00</LastMessaged>
    <LastName>sample string 3</LastName>
    <LastSearched>2021-07-31T05:59:36.0981392+00:00</LastSearched>
    <LastShared>2021-07-31T05:59:36.0981392+00:00</LastShared>
    <LastTagged>2021-07-31T05:59:36.0981392+00:00</LastTagged>
    <Notes>
      <LeadNoteModel>
        <DateCreated>2021-07-31T05:59:36.0981392+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
      <LeadNoteModel>
        <DateCreated>2021-07-31T05:59:36.0981392+00:00</DateCreated>
        <Image>sample string 2</Image>
        <Note>sample string 1</Note>
      </LeadNoteModel>
    </Notes>
    <Phone>sample string 6</Phone>
    <ProfileImage>sample string 19</ProfileImage>
    <Score>13</Score>
    <SearchAllianceChargeAmount>1</SearchAllianceChargeAmount>
    <SearchAllianceSource>sample string 8</SearchAllianceSource>
    <SearchHistoryCount>15</SearchHistoryCount>
    <SearchLocation>sample string 9</SearchLocation>
    <SharedCount>18</SharedCount>
    <Sources>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
      <LeadSourceModel>
        <Type>sample string 1</Type>
      </LeadSourceModel>
    </Sources>
    <TaggedCount>17</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.