GET example/api/MailTemplate?PublicationId={PublicationId}
https://app.bwz.se/bedrock/example/api/MailTemplate?PublicationId={PublicationId}
Gets MailTemplates based on provided filter.
Request Information
URI Parameters
None.
Body Parameters
MailTemplates associated to a Publication.
MailTemplateFilterOptionsName | Description | Type | Additional information |
---|---|---|---|
PublicationId |
MailTemplates associated to a Publication. |
integer |
None. |
Response Information
Resource Description
An array of MailTemplateModels.
Collection of MailTemplateModelName | Description | Type | Additional 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:34:39.7607562+01:00", "ModifiedDate": "2024-12-23T06:34:39.7607562+01:00" }, { "Id": 1, "HtmlLayoutId": 1, "TextLayoutId": 1, "CreatedByUserId": 2, "Name": "sample string 3", "Description": "sample string 4", "CreationDate": "2024-12-23T06:34:39.7607562+01:00", "ModifiedDate": "2024-12-23T06:34:39.7607562+01:00" } ]
application/xml, text/xml
Sample:
<ArrayOfMailTemplateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.MailTemplate"> <MailTemplateModel> <CreatedByUserId>2</CreatedByUserId> <CreationDate>2024-12-23T06:34:39.7607562+01:00</CreationDate> <Description>sample string 4</Description> <HtmlLayoutId>1</HtmlLayoutId> <Id>1</Id> <ModifiedDate>2024-12-23T06:34:39.7607562+01:00</ModifiedDate> <Name>sample string 3</Name> <TextLayoutId>1</TextLayoutId> </MailTemplateModel> <MailTemplateModel> <CreatedByUserId>2</CreatedByUserId> <CreationDate>2024-12-23T06:34:39.7607562+01:00</CreationDate> <Description>sample string 4</Description> <HtmlLayoutId>1</HtmlLayoutId> <Id>1</Id> <ModifiedDate>2024-12-23T06:34:39.7607562+01:00</ModifiedDate> <Name>sample string 3</Name> <TextLayoutId>1</TextLayoutId> </MailTemplateModel> </ArrayOfMailTemplateModel>