POST example/api/MailTemplate

https://app.bwz.se/bedrock/example/api/MailTemplate

Creates a MailTemplate.

Request Information

URI Parameters

None.

Body Parameters

Type of MailTemplate editor.

CreateMailTemplateArgs
NameDescriptionTypeAdditional information
Name

Name of the MailTemplate.

string

Required

Valid name with max 256 characters

HtmlLayoutData

Name of the MailTemplate.

Collection of byte

None.

TextLayoutData

Name of the MailTemplate.

Collection of byte

None.

HtmlEditorType

Type of MailTemplate editor.

EditorTypes

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "HtmlLayoutData": "QEA=",
  "TextLayoutData": "QEA=",
  "HtmlEditorType": 0
}

application/xml, text/xml

Sample:
<CreateMailTemplateArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.MailTemplate">
  <HtmlEditorType>RawHtml</HtmlEditorType>
  <HtmlLayoutData>QEA=</HtmlLayoutData>
  <Name>sample string 1</Name>
  <TextLayoutData>QEA=</TextLayoutData>
</CreateMailTemplateArgs>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The MailTemplateModel that has been created.

MailTemplateModel
NameDescriptionTypeAdditional information
Id

Gets or sets the id.

integer

None.

HtmlLayoutId

Gets or sets the HTML layout id.

integer

None.

TextLayoutId

Gets or sets the text layout id.

integer

None.

CreatedByUserId

Gets or sets the created by user id.

integer

None.

Name

Gets or sets the name.

string

None.

Description

Gets or sets the description.

string

None.

CreationDate

Gets or sets the creation date.

date

None.

ModifiedDate

Gets or sets the modified date.

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "HtmlLayoutId": 1,
  "TextLayoutId": 1,
  "CreatedByUserId": 2,
  "Name": "sample string 3",
  "Description": "sample string 4",
  "CreationDate": "2024-12-23T06:11:15.4854037+01:00",
  "ModifiedDate": "2024-12-23T06:11:15.4854037+01:00"
}

application/xml, text/xml

Sample:
<MailTemplateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.MailTemplate">
  <CreatedByUserId>2</CreatedByUserId>
  <CreationDate>2024-12-23T06:11:15.4854037+01:00</CreationDate>
  <Description>sample string 4</Description>
  <HtmlLayoutId>1</HtmlLayoutId>
  <Id>1</Id>
  <ModifiedDate>2024-12-23T06:11:15.4854037+01:00</ModifiedDate>
  <Name>sample string 3</Name>
  <TextLayoutId>1</TextLayoutId>
</MailTemplateModel>