GET example/api/mailtemplate/{mailTemplateId}/htmlcontent

https://app.bwz.se/bedrock/example/api/mailtemplate/{mailTemplateId}/htmlcontent

Gets a html Layout for the given MailTemplate.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
mailTemplateId

Id of the MailTemplate the Layout belogs to.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A LayoutModel

LayoutModel
NameDescriptionTypeAdditional information
Id

Id of the Layout.

integer

None.

CreatedByUserId

Id of the User creating the Layout.

integer

None.

BackgroundColour

Background color of the Layout.

string

None.

Content

Content of the Layout.

string

None.

CreationDate

Creation date of the Layout.

date

None.

DefaultThemeId

Id of the default Theme associated with the Layout.

integer

None.

LayoutGUID

The Guid associated with the Layout.

globally unique identifier

None.

Locked

Is the Layout locked.

boolean

None.

Name

The name of the Layout.

string

None.

Type

The type of the Layout.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreatedByUserId": 2,
  "BackgroundColour": "sample string 3",
  "Content": "sample string 4",
  "CreationDate": "2024-12-23T06:07:42.1445927+01:00",
  "DefaultThemeId": 1,
  "LayoutGUID": "a3d8c8b6-1a04-4585-b28c-7b79619c0308",
  "Locked": true,
  "Name": "sample string 8",
  "Type": "sample string 9"
}

application/xml, text/xml

Sample:
<LayoutModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Layout">
  <BackgroundColour>sample string 3</BackgroundColour>
  <Content>sample string 4</Content>
  <CreatedByUserId>2</CreatedByUserId>
  <CreationDate>2024-12-23T06:07:42.1445927+01:00</CreationDate>
  <DefaultThemeId>1</DefaultThemeId>
  <Id>1</Id>
  <LayoutGUID>a3d8c8b6-1a04-4585-b28c-7b79619c0308</LayoutGUID>
  <Locked>true</Locked>
  <Name>sample string 8</Name>
  <Type>sample string 9</Type>
</LayoutModel>