Api Home > Template > GetNotificationTemplatesWithPrefix

GET api/V3/Template/GetNotificationTemplatesWithPrefix?classId={classId}&prefix={prefix} Returns notification templates by class Id with the Display name starting with the Prefix indicated.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
classId

The management pack class Id

globally unique identifier

Required

prefix

The Text prefix

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of TemplateDataModel
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Description

string

None.

Subject

string

None.

Content

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "Description": "sample string 3",
    "Subject": "sample string 4",
    "Content": "sample string 5"
  },
  {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "Description": "sample string 3",
    "Subject": "sample string 4",
    "Content": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTemplateDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cireson.ServiceManager.WebConsole.ViewModels">
  <TemplateDataModel>
    <Content>sample string 5</Content>
    <Description>sample string 3</Description>
    <Id>sample string 1</Id>
    <Name>sample string 2</Name>
    <Subject>sample string 4</Subject>
  </TemplateDataModel>
  <TemplateDataModel>
    <Content>sample string 5</Content>
    <Description>sample string 3</Description>
    <Id>sample string 1</Id>
    <Name>sample string 2</Name>
    <Subject>sample string 4</Subject>
  </TemplateDataModel>
</ArrayOfTemplateDataModel>