POST api/Integrated/SaveLeadHistory

Request Information

URI Parameters

None.

Body Parameters

LeadHistoryModel
NameDescriptionTypeAdditional information
Id

integer

None.

LeadId

integer

None.

Type

string

None.

Date

date

None.

Status

string

None.

ContactAoId

integer

None.

Comment

string

None.

Schedule

string

None.

SchoolOSCId

integer

None.

CourseOSCId

integer

None.

GroupCourseId

integer

None.

DemandStudy

integer

None.

IsEnroll

boolean

None.

DateNextStep

date

None.

NextStep

string

None.

IsNew

boolean

None.

Stage

integer

None.

Note

string

None.

CourseName

string

None.

KindOfCourseId

integer

None.

DateCreate

date

None.

DateUpdate

date

None.

UserCreate

integer

None.

UserUpdate

integer

None.

TypeNext

string

None.

CampaignMarketingId

integer

None.

TypeAction

string

None.

DetailAction

string

None.

LevelPodential

string

None.

ResultAction

string

None.

LevelId

integer

None.

CourseId

integer

None.

ReasonStudy

string

None.

IsProcessed

boolean

None.

UserIdProcessed

integer

None.

DivisionHistoryId

integer

None.

UserAssignNextStepId

integer

None.

YearStudy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "LeadId": 2,
  "Type": "sample string 3",
  "Date": "2026-06-13T22:51:18.8606494+07:00",
  "Status": "sample string 4",
  "ContactAoId": 1,
  "Comment": "sample string 5",
  "Schedule": "sample string 6",
  "SchoolOSCId": 1,
  "CourseOSCId": 1,
  "GroupCourseId": 1,
  "DemandStudy": 1,
  "IsEnroll": true,
  "DateNextStep": "2026-06-13T22:51:18.8606494+07:00",
  "NextStep": "sample string 7",
  "IsNew": true,
  "Stage": 1,
  "Note": "sample string 8",
  "CourseName": "sample string 9",
  "KindOfCourseId": 1,
  "DateCreate": "2026-06-13T22:51:18.8606494+07:00",
  "DateUpdate": "2026-06-13T22:51:18.8606494+07:00",
  "UserCreate": 1,
  "UserUpdate": 1,
  "TypeNext": "sample string 10",
  "CampaignMarketingId": 1,
  "TypeAction": "sample string 11",
  "DetailAction": "sample string 12",
  "LevelPodential": "sample string 13",
  "ResultAction": "sample string 14",
  "LevelId": 1,
  "CourseId": 1,
  "ReasonStudy": "sample string 15",
  "IsProcessed": true,
  "UserIdProcessed": 1,
  "DivisionHistoryId": 1,
  "UserAssignNextStepId": 1,
  "YearStudy": 1
}

application/xml, text/xml

Sample:
<LeadHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EBM.Portal.Bus.Model">
  <CampaignMarketingId>1</CampaignMarketingId>
  <Comment>sample string 5</Comment>
  <ContactAoId>1</ContactAoId>
  <CourseId>1</CourseId>
  <CourseName>sample string 9</CourseName>
  <CourseOSCId>1</CourseOSCId>
  <Date>2026-06-13T22:51:18.8606494+07:00</Date>
  <DateCreate>2026-06-13T22:51:18.8606494+07:00</DateCreate>
  <DateNextStep>2026-06-13T22:51:18.8606494+07:00</DateNextStep>
  <DateUpdate>2026-06-13T22:51:18.8606494+07:00</DateUpdate>
  <DemandStudy>1</DemandStudy>
  <DetailAction>sample string 12</DetailAction>
  <DivisionHistoryId>1</DivisionHistoryId>
  <GroupCourseId>1</GroupCourseId>
  <Id>1</Id>
  <IsEnroll>true</IsEnroll>
  <IsNew>true</IsNew>
  <IsProcessed>true</IsProcessed>
  <KindOfCourseId>1</KindOfCourseId>
  <LeadId>2</LeadId>
  <LevelId>1</LevelId>
  <LevelPodential>sample string 13</LevelPodential>
  <NextStep>sample string 7</NextStep>
  <Note>sample string 8</Note>
  <ReasonStudy>sample string 15</ReasonStudy>
  <ResultAction>sample string 14</ResultAction>
  <Schedule>sample string 6</Schedule>
  <SchoolOSCId>1</SchoolOSCId>
  <Stage>1</Stage>
  <Status>sample string 4</Status>
  <Type>sample string 3</Type>
  <TypeAction>sample string 11</TypeAction>
  <TypeNext>sample string 10</TypeNext>
  <UserAssignNextStepId>1</UserAssignNextStepId>
  <UserCreate>1</UserCreate>
  <UserIdProcessed>1</UserIdProcessed>
  <UserUpdate>1</UserUpdate>
  <YearStudy>1</YearStudy>
</LeadHistoryModel>

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

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/" />