POST api/service/leadmagnet/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
None. |
Body Parameters
LeadMagnetServiceProvisioningModelName | Description | Type | Additional information |
---|---|---|---|
agentId | integer |
None. |
|
businessPages | Collection of FacebookPageModel |
None. |
|
selectedLeadMagnetContentIds | Collection of integer |
None. |
|
leadMagnetContents | Collection of LeadMagnetContentModel |
None. |
|
serviceType | ServiceType |
None. |
|
setupDate | date |
None. |
|
mlsSetupRequired | boolean |
None. |
|
mlsSetupCompleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "agentId": 1, "businessPages": [ { "id": "sample string 1", "name": "sample string 2", "hasSweepstakesTab": true, "agentDirectory": true, "propertySearch": true, "homeValue": true, "isBusinessClaimed": true, "adTermsChecked": true, "sweepstakesDate": "2024-12-21T16:06:51.0831999+00:00", "agentProfileAddDate": "2024-12-21T16:06:51.0831999+00:00", "propertySearchAddDate": "2024-12-21T16:06:51.0831999+00:00", "homeValueDate": "2024-12-21T16:06:51.0831999+00:00", "agentProfilePost": true, "igUserId": "sample string 6", "instagramAccountName": "sample string 7", "instagramUserName": "sample string 8", "leadMagnetAdded": true }, { "id": "sample string 1", "name": "sample string 2", "hasSweepstakesTab": true, "agentDirectory": true, "propertySearch": true, "homeValue": true, "isBusinessClaimed": true, "adTermsChecked": true, "sweepstakesDate": "2024-12-21T16:06:51.0831999+00:00", "agentProfileAddDate": "2024-12-21T16:06:51.0831999+00:00", "propertySearchAddDate": "2024-12-21T16:06:51.0831999+00:00", "homeValueDate": "2024-12-21T16:06:51.0831999+00:00", "agentProfilePost": true, "igUserId": "sample string 6", "instagramAccountName": "sample string 7", "instagramUserName": "sample string 8", "leadMagnetAdded": true } ], "selectedLeadMagnetContentIds": [ 1, 2 ], "leadMagnetContents": [ { "id": 1, "title": "sample string 2", "url": "sample string 3", "randomPagePostId": 4, "promoteUrl": "sample string 5" }, { "id": 1, "title": "sample string 2", "url": "sample string 3", "randomPagePostId": 4, "promoteUrl": "sample string 5" } ], "serviceType": 0, "setupDate": "2024-12-21T16:06:51.0831999+00:00", "mlsSetupRequired": true, "mlsSetupCompleted": true }
text/html
Sample:
{"agentId":1,"businessPages":[{"id":"sample string 1","name":"sample string 2","hasSweepstakesTab":true,"agentDirectory":true,"propertySearch":true,"homeValue":true,"isBusinessClaimed":true,"adTermsChecked":true,"sweepstakesDate":"2024-12-21T16:06:51.0831999+00:00","agentProfileAddDate":"2024-12-21T16:06:51.0831999+00:00","propertySearchAddDate":"2024-12-21T16:06:51.0831999+00:00","homeValueDate":"2024-12-21T16:06:51.0831999+00:00","agentProfilePost":true,"igUserId":"sample string 6","instagramAccountName":"sample string 7","instagramUserName":"sample string 8","leadMagnetAdded":true},{"id":"sample string 1","name":"sample string 2","hasSweepstakesTab":true,"agentDirectory":true,"propertySearch":true,"homeValue":true,"isBusinessClaimed":true,"adTermsChecked":true,"sweepstakesDate":"2024-12-21T16:06:51.0831999+00:00","agentProfileAddDate":"2024-12-21T16:06:51.0831999+00:00","propertySearchAddDate":"2024-12-21T16:06:51.0831999+00:00","homeValueDate":"2024-12-21T16:06:51.0831999+00:00","agentProfilePost":true,"igUserId":"sample string 6","instagramAccountName":"sample string 7","instagramUserName":"sample string 8","leadMagnetAdded":true}],"selectedLeadMagnetContentIds":[1,2],"leadMagnetContents":[{"id":1,"title":"sample string 2","url":"sample string 3","randomPagePostId":4,"promoteUrl":"sample string 5"},{"id":1,"title":"sample string 2","url":"sample string 3","randomPagePostId":4,"promoteUrl":"sample string 5"}],"serviceType":0,"setupDate":"2024-12-21T16:06:51.0831999+00:00","mlsSetupRequired":true,"mlsSetupCompleted":true}
application/xml, text/xml
Sample:
<LeadMagnetServiceProvisioningModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services"> <MlsSetupCompleted>true</MlsSetupCompleted> <MlsSetupRequired>true</MlsSetupRequired> <ServiceType>AgentDirectory</ServiceType> <SetupDate>2024-12-21T16:06:51.0831999+00:00</SetupDate> <AgentId>1</AgentId> <BusinessPages> <FacebookPageModel> <AdTermsChecked>true</AdTermsChecked> <AgentDirectory>true</AgentDirectory> <AgentProfileAddDate>2024-12-21T16:06:51.0831999+00:00</AgentProfileAddDate> <AgentProfilePost>true</AgentProfilePost> <HasSweepstakesTab>true</HasSweepstakesTab> <HomeValue>true</HomeValue> <HomeValueDate>2024-12-21T16:06:51.0831999+00:00</HomeValueDate> <IGUserId>sample string 6</IGUserId> <Id>sample string 1</Id> <InstagramAccountName>sample string 7</InstagramAccountName> <InstagramUserName>sample string 8</InstagramUserName> <IsBusinessClaimed>true</IsBusinessClaimed> <LeadMagnetAdded>true</LeadMagnetAdded> <Name>sample string 2</Name> <PropertySearch>true</PropertySearch> <PropertySearchAddDate>2024-12-21T16:06:51.0831999+00:00</PropertySearchAddDate> <SweepstakesDate>2024-12-21T16:06:51.0831999+00:00</SweepstakesDate> </FacebookPageModel> <FacebookPageModel> <AdTermsChecked>true</AdTermsChecked> <AgentDirectory>true</AgentDirectory> <AgentProfileAddDate>2024-12-21T16:06:51.0831999+00:00</AgentProfileAddDate> <AgentProfilePost>true</AgentProfilePost> <HasSweepstakesTab>true</HasSweepstakesTab> <HomeValue>true</HomeValue> <HomeValueDate>2024-12-21T16:06:51.0831999+00:00</HomeValueDate> <IGUserId>sample string 6</IGUserId> <Id>sample string 1</Id> <InstagramAccountName>sample string 7</InstagramAccountName> <InstagramUserName>sample string 8</InstagramUserName> <IsBusinessClaimed>true</IsBusinessClaimed> <LeadMagnetAdded>true</LeadMagnetAdded> <Name>sample string 2</Name> <PropertySearch>true</PropertySearch> <PropertySearchAddDate>2024-12-21T16:06:51.0831999+00:00</PropertySearchAddDate> <SweepstakesDate>2024-12-21T16:06:51.0831999+00:00</SweepstakesDate> </FacebookPageModel> </BusinessPages> <SelectedLeadMagnetContentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </SelectedLeadMagnetContentIds> <leadMagnetContents> <LeadMagnetContentModel> <Id>1</Id> <PromoteUrl>sample string 5</PromoteUrl> <RandomPagePostId>4</RandomPagePostId> <Title>sample string 2</Title> <Url>sample string 3</Url> </LeadMagnetContentModel> <LeadMagnetContentModel> <Id>1</Id> <PromoteUrl>sample string 5</PromoteUrl> <RandomPagePostId>4</RandomPagePostId> <Title>sample string 2</Title> <Url>sample string 3</Url> </LeadMagnetContentModel> </leadMagnetContents> </LeadMagnetServiceProvisioningModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.