POST api/leads/create

Request Information

URI Parameters

None.

Body Parameters

CreateLeadModel
NameDescriptionTypeAdditional information
CompanyName

string

None.

ContactPerson

string

None.

Phone

string

None.

Email

string

None.

Service

string

None.

Location

string

None.

ExpectedAmount

decimal number

None.

Status

string

None.

Priority

string

None.

LeadSource

string

None.

AssignedEmployeeId

integer

None.

FollowUpDate

date

None.

ExpectedCloseDate

date

None.

Notes

string

None.

CreatedByEmployeeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyName": "sample string 1",
  "ContactPerson": "sample string 2",
  "Phone": "sample string 3",
  "Email": "sample string 4",
  "Service": "sample string 5",
  "Location": "sample string 6",
  "ExpectedAmount": 1.0,
  "Status": "sample string 7",
  "Priority": "sample string 8",
  "LeadSource": "sample string 9",
  "AssignedEmployeeId": 1,
  "FollowUpDate": "2026-08-05T15:05:52.8877929+02:00",
  "ExpectedCloseDate": "2026-08-05T15:05:52.8877929+02:00",
  "Notes": "sample string 10",
  "CreatedByEmployeeId": 1
}

application/xml, text/xml

Sample:
<CreateLeadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BizBook.Models.NewModel">
  <AssignedEmployeeId>1</AssignedEmployeeId>
  <CompanyName>sample string 1</CompanyName>
  <ContactPerson>sample string 2</ContactPerson>
  <CreatedByEmployeeId>1</CreatedByEmployeeId>
  <Email>sample string 4</Email>
  <ExpectedAmount>1</ExpectedAmount>
  <ExpectedCloseDate>2026-08-05T15:05:52.8877929+02:00</ExpectedCloseDate>
  <FollowUpDate>2026-08-05T15:05:52.8877929+02:00</FollowUpDate>
  <LeadSource>sample string 9</LeadSource>
  <Location>sample string 6</Location>
  <Notes>sample string 10</Notes>
  <Phone>sample string 3</Phone>
  <Priority>sample string 8</Priority>
  <Service>sample string 5</Service>
  <Status>sample string 7</Status>
</CreateLeadModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.