def attach_file_to_idea(self, filename, *args, **kwargs):
        """ :allowed_param: ideaId
        """
        kwargs.update({'file': {'attachment': open(filename, 'rb')}})
        return bind_api(
            api=self,
            path='/ideas/{ideaId}/attach',
            method='POST',
            payload_type='idea',
            allowed_param=['ideaId']
        )(*args, **kwargs)
:allowed_param: ideaId