:doc:`PinpointSMSVoiceV2 <../../pinpoint-sms-voice-v2>` / Client / put_message_feedback

********************
put_message_feedback
********************



.. py:method:: PinpointSMSVoiceV2.Client.put_message_feedback(**kwargs)

  

  Set the MessageFeedbackStatus as ``RECEIVED`` or ``FAILED`` for the passed in MessageId.

   

  If you use message feedback then you must update message feedback record. When you receive a signal that a user has received the message you must use ``PutMessageFeedback`` to set the message feedback record as ``RECEIVED``; Otherwise, an hour after the message feedback record is set to ``FAILED``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/PutMessageFeedback>`_  


  **Request Syntax**
  ::

    response = client.put_message_feedback(
        MessageId='string',
        MessageFeedbackStatus='RECEIVED'|'FAILED'
    )
    
  :type MessageId: string
  :param MessageId: **[REQUIRED]** 

    The unique identifier for the message.

    

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

    Set the message feedback to be either ``RECEIVED`` or ``FAILED``.

    

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

    
    ::

      {
          'MessageId': 'string',
          'MessageFeedbackStatus': 'RECEIVED'|'FAILED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **MessageId** *(string) --* 

        The unique identifier for the message.

        
      

      - **MessageFeedbackStatus** *(string) --* 

        The current status of the message.

        
  
  **Exceptions**
  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ThrottlingException`

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

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

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ValidationException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.InternalServerException`

  