:doc:`Connect <../../connect>` / Client / update_user_notification_status

*******************************
update_user_notification_status
*******************************



.. py:method:: Connect.Client.update_user_notification_status(**kwargs)

  

  Updates the status of a notification for a specific user, such as marking it as read or hidden. Users can only update notification status for notifications that have been sent to them. READ status deprioritizes the notification and greys it out, while HIDDEN status removes it from the notification widget.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserNotificationStatus>`_  


  **Request Syntax**
  ::

    response = client.update_user_notification_status(
        InstanceId='string',
        NotificationId='string',
        UserId='string',
        Status='READ'|'UNREAD'|'HIDDEN',
        LastModifiedTime=datetime(2015, 1, 1),
        LastModifiedRegion='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    The unique identifier for the notification.

    

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

    The identifier of the user whose notification status is being updated.

    

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

    The new status for the notification. Valid values are READ, UNREAD, and HIDDEN.

    

  
  :type LastModifiedTime: datetime
  :param LastModifiedTime: 

    The timestamp when the notification status was last modified. Used for cross-region replication and optimistic locking.

    

  
  :type LastModifiedRegion: string
  :param LastModifiedRegion: 

    The AWS Region where the notification status was last modified. Used for cross-region replication.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The response from updating a user's notification status.

      
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

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

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  