Skip to main content
McAfee Enterprise MVISION Cloud

ModifyIncident API

Overview

This documentation presents the Modified Incident API  and it makes use of PUT method to modify the incident entry. It support basic, access token and IAM token authentication. Access and IAM tokens expire within 10 minutes.
Any user tenant user that has "Incident Management" role can run APIs listed above.

Access and IAM tokens should be passed to the APIs as "Bearer Token". Tokens are expired in 10 minutes.

API POST call end point:

https://www.myshn.net/shnapi/rest/external/api/v1/modifyIncidents

The following are some examples of the API body:

To modify status of a single incident that was returned by queryIncidents API (see above):

[
{
"incidentId":"DLP-108",
"changeRequests":
{
"WORKFLOW_STATUS":"RESOLVED"
}
}
]

 

To modify status of multiple incidents:


[
{
"incidentId":"DLP-108",
"changeRequests":

"WORKFLOW_STATUS":"RESOLVED"
}
},

{
"incidentId":"DLP-109",
"changeRequests":

"WORKFLOW_STATUS":"PENDING"
}
}
]

response:

{

    "headers": {},

    "body": {

        "actualLimit": 1,

        "apiElapsedMillis": 3004,

        "error": null,

        "nextOffset": null,

        "nextStartTime": null,

        "source": "shnapi-0296f506c07a6ec34.node.usprod.consul"

    },

    "statusCode": "OK",

    "statusCodeValue": 200

  • Was this article helpful?