This endpoint creates a manual Incident.
Request
To create a manual Incident please make a POST request to the following URL:
| HTTP Method | URL |
|---|---|
| POST | https://industrial.api.ubidots.com/api/v2.0/incidents/ |
Body Parameters
| Parameter | Type | Required? | Default Value | Description |
|---|---|---|---|---|
| name | String | Yes | N/A (required) | Name of the Incident. 1 to 200 characters |
| description | String | Yes | N/A (required) | Description of the Incident. 1 to 5000 characters |
| type | String | No | device | Type of Incident: device or variable |
| severity | String | No | p3 | Severity, from p0 to p4 |
| deviceId | String | No | null | Id of the device the Incident is about |
| variableId | String | No | null | Id of the variable the Incident is about. If deviceId is also sent, the variable must belong to that device |
| organizationId | String | No | Organization of the device, or else of the variable | Id of the Organization of the Incident |
| escalationPolicyId | String | No | null | Id of an escalation policy to start for the new Incident |
| assignedTo | Object | No | The user who creates the Incident | Who to assign the Incident to. See Assigned To. Sending null also assigns the creator |
stateis not acceptedA new Incident always starts in
triggered. Sendingstatereturns400 Bad Request.
Header
| Parameter | Required? | Description |
|---|---|---|
| X-Auth-Token | Yes | Authentication Token of account |
| Content-Type | Yes | application/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 responseIn this response
triggeredDate,acknowledgedDate,resolvedDateandlastCommentare alwaysnull. 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.

