Delete an incident
delete
/services/rest/connect/v1.4/incidents/{id}
Request
Path Parameters
-
id: integer
The unique identifier of the incident.
Response
Default Response
Root Schema : No content
Type:
null
Title:
No content
No content returned on delete
Examples
Use DELETE with the following syntax to delete an incident:
https://your_site_interface/services/rest/connect/version/incidents/incident_id
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/incidents/50
Response example
The status 200 OK
is returned. Then running this ROQL tabular query on incident records:
https://mysite.example.com/services/rest/connect/v1.4/queryResults?
query=select id from incidents where id>45 limit 10
returns the following:
{
"items": [
{
"tableName": "incidents",
"count": 10,
"columnNames": [
"id"
],
"rows": [
[
"46"
],
[
"47"
],
[
"48"
],
[
"49"
],
[
"51"
],
[
"52"
],
[
"53"
],
[
"54"
],
[
"55"
],
[
"56"
]
]
}
],
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
query=select%20id%20from%20incidents%20where%20ID%3E45%20limit%2010"
},
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/
queryResults",
"mediaType": "application/schema+json"
}
]
}
Note:
Incident 50 no longer exists.