Update Category

        Update attributes of Category
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.update_category_by_id(category_id, category, async=True)
        >>> result = thread.get()

        :param async bool
        :param str category_id: ID of category to update. (required)
        :param Category category: Attributes of category to update. (required)
        :return: Category
                 If the method is called asynchronously,
                 returns the request thread.

def update_category_by_id(cls, category_id, category, **kwargs):
        """Update Category

        Update attributes of Category
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.update_category_by_id(category_id, category, async=True)
        >>> result = thread.get()

        :param async bool
        :param str category_id: ID of category to update. (required)
        :param Category category: Attributes of category to update. (required)
        :return: Category
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._update_category_by_id_with_http_info(category_id, category, **kwargs)
        else:
            (data) = cls._update_category_by_id_with_http_info(category_id, category, **kwargs)
            return data