Delete Incident

This endpoint deletes a specific Incident.

Request

To delete an Incident please make a DELETE request to the following URL:

HTTP MethodURL
DELETEhttps://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/

Path Parameters

ParameterTypeDescription
incident_idStringThe id of the Incident. Incidents have no label, so the ~label form is not supported

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ curl -X DELETE 'https://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}
{
    "code": 402001,
    "message": "Your current plan does not include Incidents feature."
}
{
    "detail": "You do not have permission to perform this action."
}
{
    "code": 404001,
    "message": "The request was not found."
}

Response

Returns an empty response with status 204 No Content. The Incident's Logs and Comments are deleted with it.