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

****************************
batch_reset_devices_for_user
****************************



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

  

  Resets multiple devices for a specific user in a Wickr network. This operation forces the selected devices to log out and requires users to re-authenticate, which is useful for security purposes or when devices need to be revoked.

  

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


  **Request Syntax**
  ::

    response = client.batch_reset_devices_for_user(
        networkId='string',
        userId='string',
        appIds=[
            'string',
        ],
        clientToken='string'
    )
    
  :type networkId: string
  :param networkId: **[REQUIRED]** 

    The ID of the Wickr network containing the user whose devices will be reset.

    

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

    The ID of the user whose devices will be reset.

    

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

    A list of application IDs identifying the specific devices to be reset for the user. Maximum 50 devices per batch request.

    

  
    - *(string) --* 

    

  :type clientToken: string
  :param clientToken: 

    A unique identifier for this request to ensure idempotency.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'message': 'string',
          'successful': [
              {
                  'appId': 'string'
              },
          ],
          'failed': [
              {
                  'field': 'string',
                  'reason': 'string',
                  'appId': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        A message indicating the overall result of the batch device reset operation.

        
      

      - **successful** *(list) --* 

        A list of application IDs that were successfully reset.

        
        

        - *(dict) --* 

          Contains information about a device that was successfully processed in a batch device operation.

          
          

          - **appId** *(string) --* 

            The application ID of the device that was successfully processed.

            
      
    
      

      - **failed** *(list) --* 

        A list of device reset attempts that failed, including error details explaining why each device could not be reset.

        
        

        - *(dict) --* 

          Contains error information for a device operation that failed in a batch device request.

          
          

          - **field** *(string) --* 

            The field that caused the error.

            
          

          - **reason** *(string) --* 

            A description of why the device operation failed.

            
          

          - **appId** *(string) --* 

            The application ID of the device that failed to be processed.

            
      
    
  
  **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`

  