Create notification template

type is General (email and event-log actions; uses subject and body) or WebHook (webhook actions; uses httpHeaders and body) and cannot be changed afterwards. A WebHook needs httpHeaders or body; httpHeaders must be a JSON object whose values are strings, and body must be a JSON object unless disableJsonValidation is true. The name must differ from every default and custom template name, ignoring case. Concurrent creates with the same name are not serialized upstream, so automation should not issue them in parallel.

Body Params

The template to create.

Request body for creating a notification template. Server-set fields (templateId, source) are ignored if sent.

string | null

Gets or sets the template name: 1-200 characters, no control characters, unique among default and custom templates (case-insensitive).

string | null

Gets or sets the template type: General (email, event log) or WebHook. It cannot be changed afterwards.

string | null

Gets or sets the message subject. General templates only.

string | null

Gets or sets the HTTP headers as a JSON object whose values are strings. WebHook templates only.

string | null

Gets or sets the message body. For a WebHook it must be a JSON object unless disableJsonValidation is true.

boolean | null

Gets or sets a value indicating whether the WebHook body is stored without checking that it is JSON (the cmdlet's -DisableJSONValidation). Not stored.

Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json