def update_preferences_by_catagory(self, category, frequency, **kwargs):
kwargs['<STR_LIT>'] = frequency<EOL>response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(<EOL>self.id,<EOL>category<EOL>),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return response.json()['<STR_LIT>']<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_preference_categories/:category \
<https://canvas.instructure.com/doc/api/notification_preferences.html#method.notification_preferences.update_preferences_by_category>`_

:param category: The name of the category. \
    Must be parameterized e.g. The category Course Content should be course_content
:type category: str
:param frequency: The desired frequency for this notification.
:type frequency: str
    Can be 'immediately', 'daily', 'weekly', or 'never'

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