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
Name | Description | Type | Additional information |
---|---|---|---|
mailTemplateId |
Id of the MailTemplate the Layout belogs to. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A LayoutModel
LayoutModelName | Description | Type | Additional 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-11-21T17:14:34.6728903+01:00", "DefaultThemeId": 1, "LayoutGUID": "893cc5c3-3f96-45b5-8d37-fd0f197f10d2", "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-11-21T17:14:34.6728903+01:00</CreationDate> <DefaultThemeId>1</DefaultThemeId> <Id>1</Id> <LayoutGUID>893cc5c3-3f96-45b5-8d37-fd0f197f10d2</LayoutGUID> <Locked>true</Locked> <Name>sample string 8</Name> <Type>sample string 9</Type> </LayoutModel>