Update Incident Comment

This endpoint updates a Comment of an Incident.

Request

To update a Comment please make a PATCH request to the following URL:

HTTP MethodURL
PATCHhttps://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/comments/<comment_id>/

PUT to the same URL behaves the same way.

Path Parameters

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

Body Parameters

ParameterTypeRequired?Description
messageStringYesText of the Comment
🚧

Always send message

The update replaces the whole Comment, also with PATCH. A body without message leaves the Comment without a message and the request fails.

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
Content-TypeYesapplication/json
$ curl -X PATCH 'https://industrial.api.ubidots.com/api/v2.0/incidents/<incident_id>/comments/<comment_id>/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
 -H 'Content-Type: application/json' \
 -d '{
    "message": "Technician on site"
}'
{
    "id": "689e2f1a246a939d3a0c2f10",
    "message": "Technician on site",
    "username": "jane.doe",
    "createdAt": "2026-11-20T14:20:45.118000Z"
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        "message": [
            "This field is required."
        ]
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}
{
    "code": 404001,
    "message": "The request was not found."
}

Response

Returns the updated Comment object. username is set to the user who makes the request.