POST communication/SaveUnlayerContentTemplate

Request Information

URI Parameters

None.

Body Parameters

UnlayerContentTemplate
NameDescriptionTypeAdditional information
ContentTemplateId

integer

None.

Name

string

None.

TemplateType

string

None.

HTMLContent

string

None.

ObjectTypeId

integer

None.

Subject

string

None.

TenantId

integer

None.

UserId

integer

None.

Active

boolean

None.

DesignJson

string

None.

ContentFunctions

Collection of integer

None.

IsSystem

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ContentTemplateId": 1,
  "Name": "sample string 2",
  "TemplateType": "sample string 3",
  "HTMLContent": "sample string 4",
  "ObjectTypeId": 5,
  "Subject": "sample string 6",
  "TenantId": 7,
  "UserId": 8,
  "Active": true,
  "DesignJson": "sample string 10",
  "ContentFunctions": [
    1,
    2
  ],
  "IsSystem": true
}

text/html

Sample:
{"ContentTemplateId":1,"Name":"sample string 2","TemplateType":"sample string 3","HTMLContent":"sample string 4","ObjectTypeId":5,"Subject":"sample string 6","TenantId":7,"UserId":8,"Active":true,"DesignJson":"sample string 10","ContentFunctions":[1,2],"IsSystem":true}

application/xml, text/xml

Sample:
<UnlayerContentTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Communication">
  <Active>true</Active>
  <ContentFunctions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ContentFunctions>
  <ContentTemplateId>1</ContentTemplateId>
  <DesignJson>sample string 10</DesignJson>
  <HTMLContent>sample string 4</HTMLContent>
  <IsSystem>true</IsSystem>
  <Name>sample string 2</Name>
  <ObjectTypeId>5</ObjectTypeId>
  <Subject>sample string 6</Subject>
  <TemplateType>sample string 3</TemplateType>
  <TenantId>7</TenantId>
  <UserId>8</UserId>
</UnlayerContentTemplate>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.