POST api/Integrated/CreateOrUpdateLead

Request Information

URI Parameters

None.

Body Parameters

RequestCreateOrUpdateLead
NameDescriptionTypeAdditional information
LeadId

integer

None.

UserName

string

None.

Email

string

None.

Phone

string

None.

Status

string

None.

TypeApproach

string

None.

Birthday

date

None.

Sex

boolean

None.

Note

string

None.

Address

string

None.

UserSocialId

string

None.

IsLogin

boolean

None.

TypeSocial

string

None.

Avatar

string

None.

LastName

string

None.

LabelName

string

None.

LabelTypeName

string

None.

DivisionId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LeadId": 1,
  "UserName": "sample string 1",
  "Email": "sample string 2",
  "Phone": "sample string 3",
  "Status": "sample string 4",
  "TypeApproach": "sample string 5",
  "Birthday": "2026-06-13T22:44:34.897457+07:00",
  "Sex": true,
  "Note": "sample string 6",
  "Address": "sample string 7",
  "UserSocialId": "sample string 8",
  "IsLogin": true,
  "TypeSocial": "sample string 10",
  "Avatar": "sample string 11",
  "LastName": "sample string 12",
  "LabelName": "sample string 13",
  "LabelTypeName": "sample string 14",
  "DivisionId": 1
}

application/xml, text/xml

Sample:
<IntegrateModels.RequestCreateOrUpdateLead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EBM.Portal.Api.Models">
  <Address>sample string 7</Address>
  <Avatar>sample string 11</Avatar>
  <Birthday>2026-06-13T22:44:34.897457+07:00</Birthday>
  <DivisionId>1</DivisionId>
  <Email>sample string 2</Email>
  <IsLogin>true</IsLogin>
  <LabelName>sample string 13</LabelName>
  <LabelTypeName>sample string 14</LabelTypeName>
  <LastName>sample string 12</LastName>
  <LeadId>1</LeadId>
  <Note>sample string 6</Note>
  <Phone>sample string 3</Phone>
  <Sex>true</Sex>
  <Status>sample string 4</Status>
  <TypeApproach>sample string 5</TypeApproach>
  <TypeSocial>sample string 10</TypeSocial>
  <UserName>sample string 1</UserName>
  <UserSocialId>sample string 8</UserSocialId>
</IntegrateModels.RequestCreateOrUpdateLead>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />