Update entire Incident

This endpoint replaces the editable fields of an Incident.

Request

To replace the editable fields of an Incident please make a PUT request to the following URL:

HTTP MethodURL
PUThttps://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

Body Parameters

Same body and rules as Update Incident fields, except that name and description are required.

🚧

Omitted severity goes back to p3

In a full update, a body without severity sets it to p3 and writes a severity_change log. Send the current severity to keep it, or use Update Incident fields.

ParameterTypeRequired?Description
nameStringYesName of the Incident. 1 to 200 characters
descriptionStringYesDescription of the Incident. 1 to 5000 characters
severityStringNoSeverity, from p0 to p4
stateStringNoNew state: triggered, acknowledged or resolved (case insensitive). Must follow the allowed transitions
assignedToObjectNoWho to assign the Incident to. See Assigned To. Send null to unassign

Each change is recorded in the Incident history: a state change writes a change_state log, a severity change a severity_change log and an assignment change an assigned_to_change log.

🚧

Fields that can't be changed

Sending type returns 400 Bad Request, even with the current value. organizationId, deviceId, variableId and escalationPolicyId are validated but not applied: the Incident keeps its original values.

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
Content-TypeYesapplication/json
$ curl -X PUT 'https://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
 -H 'Content-Type: application/json' \
 -d '{
    "name": "Freezer above threshold",
    "description": "Temperature crossed 8 degrees for 10 minutes",
    "severity": "p0",
    "state": "acknowledged"
}'
{
    "id": "689e21cb246a939d3a0c2ed5",
    "name": "Freezer above threshold",
    "description": "Temperature crossed 8 degrees for 10 minutes",
    "type": "device",
    "state": "Acknowledged",
    "source": "automatic",
    "severity": "p0",
    "context": {
        "trigger_id": "68a0b7e1246a939d3a0c2e01",
        "event_id": "68a0b7e1246a939d3a0c2e00",
        "variable": {
            "id": "689e21cb246a939d3a0c2ed9",
            "name": "Temperature",
            "label": "temperature",
            "unit": "°C",
            "icon": "thermometer",
            "color": "#E74C3C"
        },
        "device": {
            "id": "689e21cb246a939d3a0c2ed7",
            "name": "Freezer 01",
            "label": "freezer-01"
        },
        "trigger_value": 9.4
    },
    "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": "2026-11-20T14:03:11.512000Z",
    "acknowledgedDate": "2026-11-20T14:20:45.118000Z",
    "resolvedDate": null,
    "lastComment": null,
    "createdAt": "2026-11-20T14:03:11.512000Z",
    "updatedAt": "2026-11-20T14:20:45.118000Z"
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        "state": [
            "State transition not allowed: RESOLVED → TRIGGERED"
        ]
    }
}
{
    "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 the updated Incident object.