POST api/SMSCampaign/insertRecord

Request Information

URI Parameters

None.

Body Parameters

SMSCampaign
NameDescriptionTypeAdditional information
CompaignId

integer

None.

SetTime

date

None.

CompaignName

string

None.

SenderId

string

None.

Route

integer

None.

SentCount

integer

None.

EmployeeName

string

None.

iTotalRecords

integer

None.

SentBy

decimal number

None.

IsUnicode

integer

None.

BranchId

integer

None.

Status

string

None.

RoboticSMSCampaignId

integer

None.

FilterQueryData

Collection of FilterQueryData

None.

Message

string

None.

ContactType

Collection of ContactType

None.

DocumentId

integer

None.

SMSCampaignSchedule

integer

None.

SentDate

string

None.

SentTime

string

None.

DLTTemplateId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CompaignId": 1,
  "SetTime": "2022-08-19T03:55:24.6881928+05:30",
  "CompaignName": "sample string 3",
  "SenderId": "sample string 4",
  "Route": 1,
  "SentCount": 5,
  "EmployeeName": "sample string 6",
  "iTotalRecords": 1,
  "SentBy": 7.0,
  "IsUnicode": 1,
  "BranchId": 8,
  "Status": "sample string 9",
  "RoboticSMSCampaignId": 1,
  "FilterQueryData": [
    {
      "FieldType": "sample string 1",
      "Field": "sample string 2",
      "FieldValue": "sample string 3"
    },
    {
      "FieldType": "sample string 1",
      "Field": "sample string 2",
      "FieldValue": "sample string 3"
    }
  ],
  "Message": "sample string 10",
  "ContactType": [
    {
      "IsStudentMobileNo": 1,
      "IsPrimaryMobileNo": 2,
      "IsSecondaryMobileNo": 3,
      "IsWhatsappMobileNo": 4
    },
    {
      "IsStudentMobileNo": 1,
      "IsPrimaryMobileNo": 2,
      "IsSecondaryMobileNo": 3,
      "IsWhatsappMobileNo": 4
    }
  ],
  "DocumentId": 11,
  "SMSCampaignSchedule": 12,
  "SentDate": "sample string 13",
  "SentTime": "sample string 14",
  "DLTTemplateId": "sample string 15"
}

application/xml, text/xml

Sample:
<SMSCampaign xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZenoxERP.API.Models.Extensions">
  <BranchId>8</BranchId>
  <CompaignId>1</CompaignId>
  <CompaignName>sample string 3</CompaignName>
  <ContactType>
    <ContactType>
      <IsPrimaryMobileNo>2</IsPrimaryMobileNo>
      <IsSecondaryMobileNo>3</IsSecondaryMobileNo>
      <IsStudentMobileNo>1</IsStudentMobileNo>
      <IsWhatsappMobileNo>4</IsWhatsappMobileNo>
    </ContactType>
    <ContactType>
      <IsPrimaryMobileNo>2</IsPrimaryMobileNo>
      <IsSecondaryMobileNo>3</IsSecondaryMobileNo>
      <IsStudentMobileNo>1</IsStudentMobileNo>
      <IsWhatsappMobileNo>4</IsWhatsappMobileNo>
    </ContactType>
  </ContactType>
  <DLTTemplateId>sample string 15</DLTTemplateId>
  <DocumentId>11</DocumentId>
  <EmployeeName>sample string 6</EmployeeName>
  <FilterQueryData>
    <FilterQueryData>
      <Field>sample string 2</Field>
      <FieldType>sample string 1</FieldType>
      <FieldValue>sample string 3</FieldValue>
    </FilterQueryData>
    <FilterQueryData>
      <Field>sample string 2</Field>
      <FieldType>sample string 1</FieldType>
      <FieldValue>sample string 3</FieldValue>
    </FilterQueryData>
  </FilterQueryData>
  <IsUnicode>1</IsUnicode>
  <Message>sample string 10</Message>
  <RoboticSMSCampaignId>1</RoboticSMSCampaignId>
  <Route>1</Route>
  <SMSCampaignSchedule>12</SMSCampaignSchedule>
  <SenderId>sample string 4</SenderId>
  <SentBy>7</SentBy>
  <SentCount>5</SentCount>
  <SentDate>sample string 13</SentDate>
  <SentTime>sample string 14</SentTime>
  <SetTime>2022-08-19T03:55:24.6881928+05:30</SetTime>
  <Status>sample string 9</Status>
  <iTotalRecords>1</iTotalRecords>
</SMSCampaign>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>