def METHOD_NAME(self, id=-1, alarmKey="", comment=False, modDict={}):
    if id == -1 and not alarmKey:
        return S_ERROR("Need either alarm id or key to update an alarm!")
    updateReq = {"comment": comment, "modifications": modDict}
    if id != -1:
        updateReq["id"] = id
    if alarmKey:
        updateReq["alarmKey"] = alarmKey
    return self._getRPC().METHOD_NAME(updateReq)