GET example/api/mailtemplate/name/{name}

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

Gets a specific MailTemplateModel by name.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

The name of the wanted MailTemplateModel.

string

Required

Body Parameters

None.

Response Information

Resource Description

A MailTemplateModel.

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:37:37.2300621+01:00",
  "ModifiedDate": "2024-12-23T06:37:37.2300621+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:37:37.2300621+01:00</CreationDate>
  <Description>sample string 4</Description>
  <HtmlLayoutId>1</HtmlLayoutId>
  <Id>1</Id>
  <ModifiedDate>2024-12-23T06:37:37.2300621+01:00</ModifiedDate>
  <Name>sample string 3</Name>
  <TextLayoutId>1</TextLayoutId>
</MailTemplateModel>