POST api/EmarketingTemplate/PostEmarketingTemplate/{companyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyId

integer

Required

Body Parameters

EmarketingTemplate
NameDescriptionTypeAdditional information
EmarketingTemplateId

integer

None.

EmarketingTemplateDescription

string

Required

String length: inclusive between 0 and 100

EmarketingTemplateContent

string

None.

CompanyId

integer

None.

Mailfrom

string

String length: inclusive between 0 and 100

MailfromName

string

String length: inclusive between 0 and 100

MailSubject

string

String length: inclusive between 0 and 100

TemplateType

integer

None.

ObjectState

ObjectState

None.

Request Formats

application/json, text/json

Sample:
{
  "emarketingTemplateId": 1,
  "emarketingTemplateDescription": "sample string 2",
  "emarketingTemplateContent": "sample string 3",
  "companyId": 4,
  "mailfrom": "sample string 5",
  "mailfromName": "sample string 6",
  "mailSubject": "sample string 7",
  "templateType": 8,
  "objectState": 0
}

application/xml, text/xml

Sample:
<EmarketingTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models">
  <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
  <CompanyId>4</CompanyId>
  <EmarketingTemplateContent>sample string 3</EmarketingTemplateContent>
  <EmarketingTemplateDescription>sample string 2</EmarketingTemplateDescription>
  <EmarketingTemplateId>1</EmarketingTemplateId>
  <MailSubject>sample string 7</MailSubject>
  <Mailfrom>sample string 5</Mailfrom>
  <MailfromName>sample string 6</MailfromName>
  <TemplateType>8</TemplateType>
</EmarketingTemplate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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