:doc:`ConnectWisdomService <../../wisdom>` / Client / notify_recommendations_received

*******************************
notify_recommendations_received
*******************************



.. py:method:: ConnectWisdomService.Client.notify_recommendations_received(**kwargs)

  

  Removes the specified recommendations from the specified assistant's queue of newly available recommendations. You can use this API in conjunction with `GetRecommendations <https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html>`__ and a ``waitTimeSeconds`` input for long-polling behavior and avoiding duplicate recommendations.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/NotifyRecommendationsReceived>`_  


  **Request Syntax**
  ::

    response = client.notify_recommendations_received(
        assistantId='string',
        recommendationIds=[
            'string',
        ],
        sessionId='string'
    )
    
  :type assistantId: string
  :param assistantId: **[REQUIRED]** 

    The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    

  
  :type recommendationIds: list
  :param recommendationIds: **[REQUIRED]** 

    The identifiers of the recommendations.

    

  
    - *(string) --* 

    

  :type sessionId: string
  :param sessionId: **[REQUIRED]** 

    The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'errors': [
              {
                  'message': 'string',
                  'recommendationId': 'string'
              },
          ],
          'recommendationIds': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **errors** *(list) --* 

        The identifiers of recommendations that are causing errors.

        
        

        - *(dict) --* 

          An error occurred when creating a recommendation.

          
          

          - **message** *(string) --* 

            A recommendation is causing an error.

            
          

          - **recommendationId** *(string) --* 

            The identifier of the recommendation that is in error.

            
      
    
      

      - **recommendationIds** *(list) --* 

        The identifiers of the recommendations.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`ConnectWisdomService.Client.exceptions.ValidationException`

  
  *   :py:class:`ConnectWisdomService.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ConnectWisdomService.Client.exceptions.ResourceNotFoundException`

  