Please refer to the this training script How to update Notification settings.