POST api/whatsapp/templates/save

Request Information

URI Parameters

None.

Body Parameters

WhatsAppMessageTemplates
NameDescriptionTypeAdditional information
Id

integer

None.

Trigger

Collection of string

None.

Comment

string

None.

Title

string

None.

Footer

string

None.

Buttons

string

None.

MessageType

string

None.

CallBackAction

string

None.

Selected

boolean

None.

CommentTemp

string

None.

TemplateName

string

None.

Internal

boolean

None.

Urls

string

None.

ListButton

string

None.

ListSections

string

None.

ListSectionRows

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Trigger": [
    "sample string 1",
    "sample string 2"
  ],
  "Comment": "sample string 1",
  "Title": "sample string 2",
  "Footer": "sample string 3",
  "Buttons": "sample string 4",
  "MessageType": "sample string 5",
  "CallBackAction": "sample string 6",
  "Selected": true,
  "CommentTemp": "sample string 8",
  "TemplateName": "sample string 9",
  "Internal": true,
  "Urls": "sample string 11",
  "ListButton": "sample string 12",
  "ListSections": "sample string 13",
  "ListSectionRows": "sample string 14"
}

text/html

Sample:
{"Id":1,"Trigger":["sample string 1","sample string 2"],"Comment":"sample string 1","Title":"sample string 2","Footer":"sample string 3","Buttons":"sample string 4","MessageType":"sample string 5","CallBackAction":"sample string 6","Selected":true,"CommentTemp":"sample string 8","TemplateName":"sample string 9","Internal":true,"Urls":"sample string 11","ListButton":"sample string 12","ListSections":"sample string 13","ListSectionRows":"sample string 14"}

application/xml, text/xml

Sample:
<WhatsAppMessageTemplates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube">
  <Buttons>sample string 4</Buttons>
  <CallBackAction>sample string 6</CallBackAction>
  <Comment>sample string 1</Comment>
  <CommentTemp>sample string 8</CommentTemp>
  <Footer>sample string 3</Footer>
  <Id>1</Id>
  <Internal>true</Internal>
  <ListButton>sample string 12</ListButton>
  <ListSectionRows>sample string 14</ListSectionRows>
  <ListSections>sample string 13</ListSections>
  <MessageType>sample string 5</MessageType>
  <Selected>true</Selected>
  <TemplateName>sample string 9</TemplateName>
  <Title>sample string 2</Title>
  <Trigger xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Trigger>
  <Urls>sample string 11</Urls>
</WhatsAppMessageTemplates>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>