POST api/v1/message/campaign

Request Information

URI Parameters

None.

Body Parameters

Collection of CampaignMessageRequest
NameDescriptionTypeAdditional information
tconnectId

string

Required

Max length: 50

vinNo

string

Required

topic

string

Required

subjectTh

string

Required

Max length: 512

subjectEn

string

Required

Max length: 512

contentTh

string

Required

Max length: 4000

contentEn

string

Required

Max length: 4000

enableAppointmentButton

boolean

None.

enableCallButton

boolean

None.

telNo

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "tconnectId": "sample string 1",
    "vinNo": "sample string 2",
    "topic": "sample string 3",
    "subjectTh": "sample string 4",
    "subjectEn": "sample string 5",
    "contentTh": "sample string 6",
    "contentEn": "sample string 7",
    "enableAppointmentButton": true,
    "enableCallButton": true,
    "telNo": "sample string 10"
  },
  {
    "tconnectId": "sample string 1",
    "vinNo": "sample string 2",
    "topic": "sample string 3",
    "subjectTh": "sample string 4",
    "subjectEn": "sample string 5",
    "contentTh": "sample string 6",
    "contentEn": "sample string 7",
    "enableAppointmentButton": true,
    "enableCallButton": true,
    "telNo": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCampaignMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LDCM.MyServices.Models">
  <CampaignMessageRequest>
    <ContentEn>sample string 7</ContentEn>
    <ContentTh>sample string 6</ContentTh>
    <EnableAppointmentButton>true</EnableAppointmentButton>
    <EnableCallButton>true</EnableCallButton>
    <SubjectEn>sample string 5</SubjectEn>
    <SubjectTh>sample string 4</SubjectTh>
    <TConnectId>sample string 1</TConnectId>
    <TelephoneNo>sample string 10</TelephoneNo>
    <Topic>sample string 3</Topic>
    <Vin>sample string 2</Vin>
  </CampaignMessageRequest>
  <CampaignMessageRequest>
    <ContentEn>sample string 7</ContentEn>
    <ContentTh>sample string 6</ContentTh>
    <EnableAppointmentButton>true</EnableAppointmentButton>
    <EnableCallButton>true</EnableCallButton>
    <SubjectEn>sample string 5</SubjectEn>
    <SubjectTh>sample string 4</SubjectTh>
    <TConnectId>sample string 1</TConnectId>
    <TelephoneNo>sample string 10</TelephoneNo>
    <Topic>sample string 3</Topic>
    <Vin>sample string 2</Vin>
  </CampaignMessageRequest>
</ArrayOfCampaignMessageRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.