Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Restore an E-mail Template to its Default

 

Use this API to restore an e-mail template to its default content.

URI

https://[host]/api/juniper/servicenow/emailTemplate-management/emailTemplate/ {id}/restoreToDefault (HTTP method = PUT)

URI Parameters

Parameter

Type

Required

Description

id

String

Yes

ID of the e-mail template that is to be restored to its default content

Consumes

None

Produces

  • application/vnd.juniper.servicenow.emailTemplate-management.emailTemplate+xml; version=1;

  • application/vnd.juniper.servicenow.emailTemplate-management.emailTemplate+json; version=1;

Response Elements

Element

Type

Description

uri

String

URI of the e-mail template

id

Integer

ID of the e-mail template

templateName

String

Name of the e-mail template

description

String

Description of the e-mail template

createdBy

String

Username of the user who created the e-mail template

lastUpdateTime

String

Date and time the e-mail template was last modified

subject

String

Subject of the e-mail template

templateContents

String

Contents of the e-mail template

method

String

Method applicable to the e-mail template

Sample Output

Sample XML Output

Sample JSON Output