:doc:`rePostPrivate <../../repostspace>` / Client / batch_remove_role

*****************
batch_remove_role
*****************



.. py:method:: rePostPrivate.Client.batch_remove_role(**kwargs)

  

  Remove a role from multiple users or groups in a private re:Post.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchRemoveRole>`_  


  **Request Syntax**
  ::

    response = client.batch_remove_role(
        spaceId='string',
        accessorIds=[
            'string',
        ],
        role='EXPERT'|'MODERATOR'|'ADMINISTRATOR'|'SUPPORTREQUESTOR'
    )
    
  :type spaceId: string
  :param spaceId: **[REQUIRED]** 

    The unique ID of the private re:Post.

    

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

    The user or group accessor identifiers to remove the role from.

    

  
    - *(string) --* 

    

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

    The role to remove from the users or groups.

    

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

    
    ::

      {
          'removedAccessorIds': [
              'string',
          ],
          'errors': [
              {
                  'accessorId': 'string',
                  'error': 123,
                  'message': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **removedAccessorIds** *(list) --* 

        An array of successfully updated accessor identifiers.

        
        

        - *(string) --* 
    
      

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

        An array of errors that occurred when roles were removed.

        
        

        - *(dict) --* 

          An error that occurred during a batch operation.

          
          

          - **accessorId** *(string) --* 

            The accessor identifier that's related to the error.

            
          

          - **error** *(integer) --* 

            The error code.

            
          

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

            Description of the error.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`rePostPrivate.Client.exceptions.ValidationException`

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

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

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

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

  