POST api/CreateLeadInterest

Request Information

URI Parameters

None.

Body Parameters

CreateLeadInterestVm
NameDescriptionTypeAdditional information
InterestValue

decimal number

None.

ExpectedClosureDate

string

None.

ProjectId

integer

Required

LeadId

integer

Required

UserId

integer

None.

CompanyStageId

integer

None.

Remark

string

None.

Request Formats

application/json, text/json

Sample:
{
  "InterestValue": 1.1,
  "ExpectedClosureDate": "sample string 2",
  "ProjectId": 3,
  "LeadId": 1,
  "UserId": 4,
  "CompanyStageId": 1,
  "Remark": "sample string 5"
}

application/xml, text/xml

Sample:
<CreateLeadInterestVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Services.Lead">
  <CompanyStageId>1</CompanyStageId>
  <ExpectedClosureDate>sample string 2</ExpectedClosureDate>
  <InterestValue>1.1</InterestValue>
  <LeadId>1</LeadId>
  <ProjectId>3</ProjectId>
  <Remark>sample string 5</Remark>
  <UserId>4</UserId>
</CreateLeadInterestVm>

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

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>