GET api/MMGMessageTemplates?accountId={accountId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of MMGMessageTemplateDTO
NameDescriptionTypeAdditional information
Id

integer

None.

RuleTypeId

integer

None.

AccountId

integer

None.

GlobalTemplateId

integer

None.

SubIndustryId

integer

None.

Name

string

None.

Subject

string

None.

Body

string

None.

Description

string

None.

Status

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "RuleTypeId": 2,
    "AccountId": 3,
    "GlobalTemplateId": 1,
    "SubIndustryId": 1,
    "Name": "sample string 4",
    "Subject": "sample string 5",
    "Body": "sample string 6",
    "Description": "sample string 7",
    "Status": 8
  },
  {
    "Id": 1,
    "RuleTypeId": 2,
    "AccountId": 3,
    "GlobalTemplateId": 1,
    "SubIndustryId": 1,
    "Name": "sample string 4",
    "Subject": "sample string 5",
    "Body": "sample string 6",
    "Description": "sample string 7",
    "Status": 8
  }
]

application/xml, text/xml

Sample:
<ArrayOfMMGMessageTemplateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.DTOs">
  <MMGMessageTemplateDTO>
    <AccountId>3</AccountId>
    <Body>sample string 6</Body>
    <Description>sample string 7</Description>
    <GlobalTemplateId>1</GlobalTemplateId>
    <Id>1</Id>
    <Name>sample string 4</Name>
    <RuleTypeId>2</RuleTypeId>
    <Status>8</Status>
    <SubIndustryId>1</SubIndustryId>
    <Subject>sample string 5</Subject>
  </MMGMessageTemplateDTO>
  <MMGMessageTemplateDTO>
    <AccountId>3</AccountId>
    <Body>sample string 6</Body>
    <Description>sample string 7</Description>
    <GlobalTemplateId>1</GlobalTemplateId>
    <Id>1</Id>
    <Name>sample string 4</Name>
    <RuleTypeId>2</RuleTypeId>
    <Status>8</Status>
    <SubIndustryId>1</SubIndustryId>
    <Subject>sample string 5</Subject>
  </MMGMessageTemplateDTO>
</ArrayOfMMGMessageTemplateDTO>