POST api/CreateThirdPartyAccount

Request Information

URI Parameters

None.

Body Parameters

Collection of CreateThirdPartyAccountVm
NameDescriptionTypeAdditional information
CompanyId

integer

None.

LeadSourceId

integer

None.

Account

string

None.

Url

string

None.

ApiKey

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CompanyId": 1,
    "LeadSourceId": 2,
    "Account": "sample string 3",
    "Url": "sample string 4",
    "ApiKey": "sample string 5"
  },
  {
    "CompanyId": 1,
    "LeadSourceId": 2,
    "Account": "sample string 3",
    "Url": "sample string 4",
    "ApiKey": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCreateThirdPartyAccountVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Services.Lead">
  <CreateThirdPartyAccountVm>
    <Account>sample string 3</Account>
    <ApiKey>sample string 5</ApiKey>
    <CompanyId>1</CompanyId>
    <LeadSourceId>2</LeadSourceId>
    <Url>sample string 4</Url>
  </CreateThirdPartyAccountVm>
  <CreateThirdPartyAccountVm>
    <Account>sample string 3</Account>
    <ApiKey>sample string 5</ApiKey>
    <CompanyId>1</CompanyId>
    <LeadSourceId>2</LeadSourceId>
    <Url>sample string 4</Url>
  </CreateThirdPartyAccountVm>
</ArrayOfCreateThirdPartyAccountVm>

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 'List`1'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Description

string

None.

Data

Object

None.

Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Description": "sample string 3",
  "Data": {},
  "Count": 5
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models">
  <Count>5</Count>
  <Data />
  <Description>sample string 3</Description>
  <Message>sample string 2</Message>
  <Success>true</Success>
</Response>