system.kanoa.quality.config.updateAlertGroup
Description
Updates an alert group in KanoaQDS.Syntax
updateAlertGroup(grpInfo, userId)- dict grpInfo - Dictionary, e.g., {'alertGroupId: 1, 'alertGroupName' : 'Quality', 'emailList': ['quality@kanoa.com', 'operations@kanoa.com'], 'enabled': True}
- int userId - User ID
- int alertGroupId - ID of the updated alert group.
Code Examples
# Usage example
group_info = {'alertGroupId': 1, 'alertGroupName': 'Quality', 'emailList': ['quality@kanoa.com', 'operations@kanoa.com'], 'enabled': True}
updated_alert_group_id = system.kanoa.quality.config.updateAlertGroup(grpInfo=group_info, userId=123)
if updated_alert_group_id is not None:
print(f"Successfully updated alert group with ID: {updated_alert_group_id}")