Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Modify an E-mail Template

    Use this API to modify an e-mail template.

    URI

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

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the e-mail template to be modified

    Consumes

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

    Request Elements

    Element

    Type

    Description

    columnName

    String

    Name of the variable to be modified

    selected

    Boolean

    Flag to specify if the e-mail template attribute is selected for modification or not

    Possible Values:

    • true—E-mail template attribute is selected for modification
    • false—E-mail template attribute is selected for modification

    subject

    String

    Subject of the e-mail template

    templateContents

    String

    Contents of the e-mail template

    templateVariables

    String

    Variables present in the e-mail template

    Produces

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

    Response Elements

    Element

    Type

    Description

    msg

    String

    Status message of the modify E-mail template task

    Sample Input

    Sample XML Input

    <modifyEmailTemplate>
    <subject>Subject1</subject>
    </modifyEmailTemplate>
    

    Sample JSON Input

    {
      "modifyEmailTemplate": { "subject": "Subject1" }
    }
    

    Sample Output

    Sample XML Output

    <servicenowmsg>
    <msg>Email template with id 34537 modified successfully</msg>
    </servicenowmsg>
    

    Sample JSON Output

    {
      "servicenowmsg": { "msg": "Email template with id 34537 modified successfully" }
    
    }
    

    Modified: 2016-08-11