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

    Delete an Incident by Incident ID

    Use this API to delete an incident from Junos Space Service Now. This action deletes the incident from the Service Now database and from the Incidents table.

    URI

    https://[host]/api/juniper/servicenow/incident-management/incidents/{id} (HTTP method = DELETE)

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the Incident to be deleted

    Consumes

    None

    Produces

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

    Response Elements

    Element

    Type

    Description

    msg

    String

    Status message of the delete incident job

    Sample Output

    Sample XML Output

    <servicenowmsg>
          <msg> Incident successfully deleted</msg>
    </servicenowmsg>
    
    

    Sample JSON Output

    {
       "servicenowmsg":{
          "msg":" Incident successfully deleted"
       }
    }
    

    Response Status Code

    Message

    Description

    404 Not Found

    Invalid incident number, incident not found.

    Modified: 2016-08-11