def update_multiple_preferences(self, notification_preferences, **kwargs):
if isinstance(notification_preferences, dict) and notification_preferences:<EOL><INDENT>for key, value in notification_preferences.items():<EOL><INDENT>try:<EOL><INDENT>if not value['<STR_LIT>']:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>kwargs['<STR_LIT>'] = notification_preferences<EOL>response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(<EOL>self.id<EOL>),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return response.json()['<STR_LIT>']<EOL><DEDENT>return False<EOL>
Change preferences for multiple notifications based on the category
for a single communication channel.

:calls: `PUT
    /api/v1/users/self/communication_channels/:communication_channel_id/ \
        notification_preferences \
<https://canvas.instructure.com/doc/api/notification_preferences.html#method.notification_preferences.update_all>`_

:param notification_preferences: Dict that indicates the frequency for \
    different notification types.
:type notification: dict

:rtype: :class:`canvasapi.notification_preference.NotificationPreference`