PUT example/api/mailtemplate/{id}/thumbnailoptions

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

Gets a thumbnail for a given MailTemplate.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Id of the MailTemplate.

integer

Required

Body Parameters

Gets or sets a value indicating whether [prevent enlarge]. true if [prevent enlarge]; otherwise, false.

ThumbnailOptions
NameDescriptionTypeAdditional information
BrowserWidth

Gets or sets the width of the browser.

integer

None.

MaxThumbnailWidth

Gets or sets the maximum width of the thumbnail.

integer

None.

MaxThumbnailHeight

Gets or sets the maximum height of the thumbnail.

integer

None.

PreserveAspectRatio

Gets or sets a value indicating whether [preserve aspect ratio].

boolean

None.

PreventEnlarge

Gets or sets a value indicating whether [prevent enlarge].

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "BrowserWidth": 1,
  "MaxThumbnailWidth": 2,
  "MaxThumbnailHeight": 3,
  "PreserveAspectRatio": true,
  "PreventEnlarge": true
}

application/xml, text/xml

Sample:
<ThumbnailOptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models">
  <BrowserWidth>1</BrowserWidth>
  <MaxThumbnailHeight>3</MaxThumbnailHeight>
  <MaxThumbnailWidth>2</MaxThumbnailWidth>
  <PreserveAspectRatio>true</PreserveAspectRatio>
  <PreventEnlarge>true</PreventEnlarge>
</ThumbnailOptions>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A WebImage.

WebImage
NameDescriptionTypeAdditional information
Height

integer

None.

Width

integer

None.

FileName

string

None.

ImageFormat

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.