lhs-panel Click here to expand

Disable Ticket Notification

A) Get Alert Profile Details

The API allows you to fetch the alert profile details of the created ticket.

Request URL

GET http://hostname:8400/RestAPI/v1/ticket/profile

Request Header

Header name Value Mandatory Description
Authorization Bearer {{AuthToken}} Yes AuthToken generated from the API Settings page.

e.g., Bearer abcd1234xyz

Request Parameters

The request body must be sent in JSON format and include the following key/value parameters:

Parameter Name Mandatory Type Description
ticket_id Yes String ID of the ticket to retrieve alert profile details from.

Response

The response will be a JSON object with the following key/value pairs:

Parameter name Description
profile_name Name of the alert profile from where the ticket was raised.
profile_id ID of the alert profile from where the ticket was raised.
message Status of the alert profile details fetched from the ticket.

Example Usage using cURL

Sample request

Copy to Clipboard

curl --location 'http://localhost:8400/RestAPI/v1/ticket/profile?ticket_id=33741' \

--header 'Authorization: Bearer abcd1234xyz' \

Sample response:

Copy to Clipboard

{"profile_name":"Alert 1","profile_id":1801,"message":"Alert Profile Name fetched successfully"}

Example usage using Postman (Third-party tool)

Get Alert Profile Details

B) Disable Ticket Notification

The API allows you to disable the alert profile notification for the ticketing tool connection.

Request URL

PUT http://hostname:8400/RestAPI/v1/ticket/profile/disable

Request Header

Header name Value Mandatory Description
Authorization Bearer {{AuthToken}} Yes AuthToken generated from the API Settings page.

e.g., Bearer abcd1234xyz

Request Parameters

Parameter Name Mandatory Type Description
profile_id Yes String Profile ID of the alert profile to be disabled for the ticketing tool connection.

Response

The response will be a JSON object with the following key/value pair:

Parameter name Description
message Status of the disable alert profile notification.

Example Usage using cURL

Sample request

Copy to Clipboard

curl --location --request PUT 'http://localhost:8400/RestAPI/v1/ticket/profile/disable' \

--header 'Content-Type: application/json' \

--header 'Authorization: Bearer abcd1234xyz' \

--data '{

"profile_id":1801

}'

Sample response:

Copy to Clipboard

{"message":"Ticketing Tool notification for Alert 1 Alert Profile disabled in EventLog Analyzer successfully"}

Example usage using Postman (Third-party tool)

Disable Ticket Notification

Copyright © 2020, ZOHO Corp. All Rights Reserved.

Get download link