PUT api/merge/agent

Request Information

URI Parameters

None.

Body Parameters

AgentMergeModel
NameDescriptionTypeAdditional information
agentId

integer

None.

oldAgentId

integer

None.

facebookId

string

None.

AccessToken

string

None.

profile_image

string

None.

firstName

string

None.

lastName

string

None.

email

string

None.

phone

string

None.

ScoreDetails

ScoreDetails

None.

mlsOrgId

string

None.

serviceAreas

Collection of ServiceAreaModel

None.

asapBalance

AsapBalanceModel

None.

budget

decimal number

None.

customURL

string

None.

isSearchAllianceMember

boolean

None.

listingImportedDateTime

date

None.

homeSearchRegisteredDateTime

date

None.

FundingAccountId

string

None.

Products

Collection of FundingSourceDetails

None.

Brokerage

Brokerage

None.

MlsAgentId

string

None.

MlsOfficeId

string

None.

PageEngagePostingSchedule

UserScheduleDetails

None.

Notes

Collection of AgentCsNote

None.

BusinessPages

Collection of FacebookPageModel

None.

PagePostHistory

PagePostHistoryDetails

None.

EmployeeId

integer

None.

AgentEmails

Collection of AgentEmail

None.

Request Formats

application/json, text/json

Sample:
{
  "agentId": 1,
  "oldAgentId": 2,
  "facebookId": "sample string 3",
  "AccessToken": "sample string 4",
  "profile_image": "sample string 5",
  "firstName": "sample string 6",
  "lastName": "sample string 7",
  "email": "sample string 8",
  "phone": "sample string 9",
  "ScoreDetails": {
    "Score": 1,
    "AgentId": 1
  },
  "mlsOrgId": "sample string 10",
  "serviceAreas": [
    {
      "GeoShape": {
        "coordinates": [
          1.1,
          2.1
        ],
        "radius": "sample string 1",
        "Type": "sample string 2"
      },
      "Center": null,
      "Bid": 1.0
    },
    {
      "GeoShape": {
        "coordinates": [
          1.1,
          2.1
        ],
        "radius": "sample string 1",
        "Type": "sample string 2"
      },
      "Center": null,
      "Bid": 1.0
    }
  ],
  "asapBalance": {
    "balance": 1.0,
    "creditsBalance": 1.0,
    "cashBalance": 1.0,
    "freeLeads": 64
  },
  "budget": 1.0,
  "customURL": "sample string 11",
  "isSearchAllianceMember": true,
  "listingImportedDateTime": "2021-08-01T04:43:35.6584091+00:00",
  "homeSearchRegisteredDateTime": "2021-08-01T04:43:35.6584091+00:00",
  "FundingAccountId": "sample string 13",
  "Products": [
    {
      "FundingSourceId": 1,
      "MembershipId": 2,
      "ProductName": "sample string 3",
      "Plan": "sample string 4"
    },
    {
      "FundingSourceId": 1,
      "MembershipId": 2,
      "ProductName": "sample string 3",
      "Plan": "sample string 4"
    }
  ],
  "Brokerage": {
    "Id": 1,
    "BrokerageName": "sample string 2",
    "Address": "sample string 3",
    "City": "sample string 4",
    "StateCode": "sample string 5",
    "Zip": "sample string 6",
    "Email": "sample string 7",
    "EmailOptOut": true,
    "DocumentKey": "sample string 9",
    "BrokerSigned": true,
    "MlsSigned": true,
    "DoNotSendPdfApproved": true,
    "DoNotSendPdfPending": true,
    "ContactName": "sample string 14",
    "Phone": "sample string 15",
    "SubscriberId": 1,
    "IsSubscribingBrokerOverride": true,
    "BrokerSignedDate": "2021-08-01T04:43:35.6584091+00:00",
    "MlsSignedDate": "2021-08-01T04:43:35.6584091+00:00",
    "BrokerGuid": "f88a131f-430c-4d3f-b83c-f858bd5f8e90",
    "MlsGuid": "d2b738ce-64d3-4668-8dd5-03c5cb1ed8fd",
    "BrokerSigningUrl": "sample string 17",
    "MlsSigningUrl": "sample string 18",
    "MlsEmail": "sample string 19",
    "BrokerDelegateEmail": "sample string 20",
    "MlsDelegateEmail": "sample string 21"
  },
  "MlsAgentId": "sample string 14",
  "MlsOfficeId": "sample string 15",
  "PageEngagePostingSchedule": {
    "Schedule": {
      "enabled": true,
      "subscribed": "2021-08-01T04:43:35.6740264+00:00",
      "canceled": "2021-08-01T04:43:35.6740264+00:00",
      "postToBusinessPage": true,
      "facebookPageId": "sample string 3",
      "postToProfile": true,
      "postingDays": [
        true,
        true
      ],
      "featuredListings": true,
      "includeOfficeListings": true
    },
    "AgentId": 1
  },
  "Notes": [
    {
      "Id": 1,
      "MembershipId": 2,
      "DateCreated": "2021-08-01T04:43:35.6740264+00:00",
      "Note": "sample string 4"
    },
    {
      "Id": 1,
      "MembershipId": 2,
      "DateCreated": "2021-08-01T04:43:35.6740264+00:00",
      "Note": "sample string 4"
    }
  ],
  "BusinessPages": [
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "hasSweepstakesTab": true,
      "agentDirectory": true,
      "propertySearch": true,
      "homeValue": true,
      "isBusinessClaimed": true,
      "adTermsChecked": true,
      "sweepstakesDate": "2021-08-01T04:43:35.6740264+00:00",
      "agentProfileAddDate": "2021-08-01T04:43:35.6740264+00:00",
      "propertySearchAddDate": "2021-08-01T04:43:35.6740264+00:00",
      "homeValueDate": "2021-08-01T04:43:35.6740264+00:00",
      "agentProfilePost": true
    },
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "hasSweepstakesTab": true,
      "agentDirectory": true,
      "propertySearch": true,
      "homeValue": true,
      "isBusinessClaimed": true,
      "adTermsChecked": true,
      "sweepstakesDate": "2021-08-01T04:43:35.6740264+00:00",
      "agentProfileAddDate": "2021-08-01T04:43:35.6740264+00:00",
      "propertySearchAddDate": "2021-08-01T04:43:35.6740264+00:00",
      "homeValueDate": "2021-08-01T04:43:35.6740264+00:00",
      "agentProfilePost": true
    }
  ],
  "PagePostHistory": {
    "Count": 1,
    "AgentId": 2
  },
  "EmployeeId": 16,
  "AgentEmails": [
    {
      "AgentId": 1,
      "Email": "sample string 2",
      "SendLeadsEmail": true,
      "DateInserted": "2021-08-01T04:43:35.6740264+00:00"
    },
    {
      "AgentId": 1,
      "Email": "sample string 2",
      "SendLeadsEmail": true,
      "DateInserted": "2021-08-01T04:43:35.6740264+00:00"
    }
  ]
}

text/html

Sample:
{"agentId":1,"oldAgentId":2,"facebookId":"sample string 3","AccessToken":"sample string 4","profile_image":"sample string 5","firstName":"sample string 6","lastName":"sample string 7","email":"sample string 8","phone":"sample string 9","ScoreDetails":{"Score":1,"AgentId":1},"mlsOrgId":"sample string 10","serviceAreas":[{"GeoShape":{"coordinates":[1.1,2.1],"radius":"sample string 1","Type":"sample string 2"},"Center":null,"Bid":1.0},{"GeoShape":{"coordinates":[1.1,2.1],"radius":"sample string 1","Type":"sample string 2"},"Center":null,"Bid":1.0}],"asapBalance":{"balance":1.0,"creditsBalance":1.0,"cashBalance":1.0,"freeLeads":64},"budget":1.0,"customURL":"sample string 11","isSearchAllianceMember":true,"listingImportedDateTime":"2021-08-01T04:43:35.6584091+00:00","homeSearchRegisteredDateTime":"2021-08-01T04:43:35.6584091+00:00","FundingAccountId":"sample string 13","Products":[{"FundingSourceId":1,"MembershipId":2,"ProductName":"sample string 3","Plan":"sample string 4"},{"FundingSourceId":1,"MembershipId":2,"ProductName":"sample string 3","Plan":"sample string 4"}],"Brokerage":{"Id":1,"BrokerageName":"sample string 2","Address":"sample string 3","City":"sample string 4","StateCode":"sample string 5","Zip":"sample string 6","Email":"sample string 7","EmailOptOut":true,"DocumentKey":"sample string 9","BrokerSigned":true,"MlsSigned":true,"DoNotSendPdfApproved":true,"DoNotSendPdfPending":true,"ContactName":"sample string 14","Phone":"sample string 15","SubscriberId":1,"IsSubscribingBrokerOverride":true,"BrokerSignedDate":"2021-08-01T04:43:35.6584091+00:00","MlsSignedDate":"2021-08-01T04:43:35.6584091+00:00","BrokerGuid":"f88a131f-430c-4d3f-b83c-f858bd5f8e90","MlsGuid":"d2b738ce-64d3-4668-8dd5-03c5cb1ed8fd","BrokerSigningUrl":"sample string 17","MlsSigningUrl":"sample string 18","MlsEmail":"sample string 19","BrokerDelegateEmail":"sample string 20","MlsDelegateEmail":"sample string 21"},"MlsAgentId":"sample string 14","MlsOfficeId":"sample string 15","PageEngagePostingSchedule":{"Schedule":{"enabled":true,"subscribed":"2021-08-01T04:43:35.6740264+00:00","canceled":"2021-08-01T04:43:35.6740264+00:00","postToBusinessPage":true,"facebookPageId":"sample string 3","postToProfile":true,"postingDays":[true,true],"featuredListings":true,"includeOfficeListings":true},"AgentId":1},"Notes":[{"Id":1,"MembershipId":2,"DateCreated":"2021-08-01T04:43:35.6740264+00:00","Note":"sample string 4"},{"Id":1,"MembershipId":2,"DateCreated":"2021-08-01T04:43:35.6740264+00:00","Note":"sample string 4"}],"BusinessPages":[{"id":"sample string 1","name":"sample string 2","hasSweepstakesTab":true,"agentDirectory":true,"propertySearch":true,"homeValue":true,"isBusinessClaimed":true,"adTermsChecked":true,"sweepstakesDate":"2021-08-01T04:43:35.6740264+00:00","agentProfileAddDate":"2021-08-01T04:43:35.6740264+00:00","propertySearchAddDate":"2021-08-01T04:43:35.6740264+00:00","homeValueDate":"2021-08-01T04:43:35.6740264+00:00","agentProfilePost":true},{"id":"sample string 1","name":"sample string 2","hasSweepstakesTab":true,"agentDirectory":true,"propertySearch":true,"homeValue":true,"isBusinessClaimed":true,"adTermsChecked":true,"sweepstakesDate":"2021-08-01T04:43:35.6740264+00:00","agentProfileAddDate":"2021-08-01T04:43:35.6740264+00:00","propertySearchAddDate":"2021-08-01T04:43:35.6740264+00:00","homeValueDate":"2021-08-01T04:43:35.6740264+00:00","agentProfilePost":true}],"PagePostHistory":{"Count":1,"AgentId":2},"EmployeeId":16,"AgentEmails":[{"AgentId":1,"Email":"sample string 2","SendLeadsEmail":true,"DateInserted":"2021-08-01T04:43:35.6740264+00:00"},{"AgentId":1,"Email":"sample string 2","SendLeadsEmail":true,"DateInserted":"2021-08-01T04:43:35.6740264+00:00"}]}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'NPlay.Common.Geometry.GeoPoint' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'NPlay.Common.Geometry.GeoPoint' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.