:doc:`WickrAdminAPI <../../wickr>` / Client / update_data_retention

*********************
update_data_retention
*********************



.. py:method:: WickrAdminAPI.Client.update_data_retention(**kwargs)

  

  Updates the data retention bot settings, allowing you to enable or disable the data retention service, or acknowledge the public key message.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wickr-2024-02-01/UpdateDataRetention>`_  


  **Request Syntax**
  ::

    response = client.update_data_retention(
        networkId='string',
        actionType='ENABLE'|'DISABLE'|'PUBKEY_MSG_ACK'
    )
    
  :type networkId: string
  :param networkId: **[REQUIRED]** 

    The ID of the Wickr network containing the data retention bot.

    

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

    The action to perform. Valid values are 'ENABLE' (to enable the data retention service), 'DISABLE' (to disable the service), or 'PUBKEY_MSG_ACK' (to acknowledge the public key message).

    

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

    
    ::

      {
          'message': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        A message indicating the result of the update operation.

        
  
  **Exceptions**
  
  *   :py:class:`WickrAdminAPI.Client.exceptions.ValidationError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.BadRequestError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.ResourceNotFoundError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.ForbiddenError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.UnauthorizedError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.InternalServerError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.RateLimitError`

  