lhs-panel Click here to expand

Sync Incident Status/Severity using Ticket

The API allows you to update an incident's status or severity based on the ticket's status or severity.

Request URL

POST http://hostname:8400/RestAPI/v1/ticket/incident/update

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 update the status/severity for.
changelog Yes JSONObject A JSONObject containing the ticket's updated filed STATUS (or) SEVERITY and its updated value.
field Yes String Field of ticket that was updated.
value Yes String New value of the ticket field which was updated.

Response

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

Parameter name Description
message Result of the update incident request.

Example Usage using cURL

Sample request

Copy to Clipboard

curl --location 'http://localhost:8400/RestAPI/v1/ticket/incident/update' \

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

--header 'Authorization: Bearer abcd1234xyz' \

--data '{

"ticket_id": "33630",

"changelog": {

"field": "STATUS",

"value": "Pending"

}

}'

Sample response:

Copy to Clipboard

{"message":"Incident updated successfully"}

Example usage using Postman (Third-party tool)

Get Product Details

Copyright © 2020, ZOHO Corp. All Rights Reserved.

Get download link