Create Incident

This endpoint creates a manual Incident.

Request

To create a manual Incident please make a POST request to the following URL:

HTTP MethodURL
POSThttps://industrial.api.ubidots.com/api/v2.0/incidents/

Body Parameters

ParameterTypeRequired?Default ValueDescription
nameStringYesN/A (required)Name of the Incident. 1 to 200 characters
descriptionStringYesN/A (required)Description of the Incident. 1 to 5000 characters
typeStringNodeviceType of Incident: device or variable
severityStringNop3Severity, from p0 to p4
deviceIdStringNonullId of the device the Incident is about
variableIdStringNonullId of the variable the Incident is about. If deviceId is also sent, the variable must belong to that device
organizationIdStringNoOrganization of the device, or else of the variableId of the Organization of the Incident
escalationPolicyIdStringNonullId of an escalation policy to start for the new Incident
assignedToObjectNoThe user who creates the IncidentWho to assign the Incident to. See Assigned To. Sending null also assigns the creator
🚧

state is not accepted

A new Incident always starts in triggered. Sending state returns 400 Bad Request.

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
Content-TypeYesapplication/json
$ curl -X POST 'https://industrial.api.ubidots.com/api/v2.0/incidents/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
 -H 'Content-Type: application/json' \
 -d '{
    "name": "Freezer above threshold",
    "description": "Temperature crossed 8 degrees for 10 minutes",
    "severity": "p1",
    "deviceId": "689e21cb246a939d3a0c2ed7"
}'
{
    "id": "689e21cb246a939d3a0c2ed5",
    "name": "Freezer above threshold",
    "description": "Temperature crossed 8 degrees for 10 minutes",
    "type": "device",
    "state": "Triggered",
    "source": "manual",
    "severity": "p1",
    "context": {
        "trigger_id": null,
        "event_id": null,
        "variable": {},
        "device": {
            "id": "689e21cb246a939d3a0c2ed7",
            "name": "Freezer 01",
            "label": "freezer-01"
        },
        "trigger_value": null
    },
    "organizationId": "5d966d47e694aa3a85c0a6c5",
    "organization": {
        "id": "5d966d47e694aa3a85c0a6c5",
        "name": "Cold Storage Inc.",
        "label": "cold-storage-inc",
        "createdAt": "2019-10-10T13:19:18.126000Z"
    },
    "escalationPolicy": null,
    "assignedTo": {
        "type": "user",
        "userId": "5d966dbbe694aa3a85c0cef7",
        "username": "jane.doe",
        "firstName": "Jane",
        "lastName": "Doe",
        "avatarUrl": null
    },
    "triggeredDate": null,
    "acknowledgedDate": null,
    "resolvedDate": null,
    "lastComment": null,
    "createdAt": "2026-11-20T14:03:11.512000Z",
    "updatedAt": "2026-11-20T14:03:11.512000Z"
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        "state": [
            "state is not accepted on create"
        ]
    }
}
{
    "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."
}

Response

Returns the created Incident object, with source manual and state Triggered. The creator is logged as the actor of the triggered state, and the comment Incident created manually by <username> is added to the Incident.

🚧

Dates in the creation response

In this response triggeredDate, acknowledgedDate, resolvedDate and lastComment are always null. Get the Incident to read their values.

A deviceId, variableId, organizationId or escalationPolicyId that doesn't exist in the account (or, for an End User, in their organizations) returns 400 Bad Request.