:doc:`MTurk <../../mturk>` / Client / create_worker_block

*******************
create_worker_block
*******************



.. py:method:: MTurk.Client.create_worker_block(**kwargs)

  

  The ``CreateWorkerBlock`` operation allows you to prevent a Worker from working on your HITs. For example, you can block a Worker who is producing poor quality work. You can block up to 100,000 Workers.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlock>`_  


  **Request Syntax**
  ::

    response = client.create_worker_block(
        WorkerId='string',
        Reason='string'
    )
    
  :type WorkerId: string
  :param WorkerId: **[REQUIRED]** 

    The ID of the Worker to block.

    

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

    A message explaining the reason for blocking the Worker. This parameter enables you to keep track of your Workers. The Worker does not see this message.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MTurk.Client.exceptions.ServiceFault`

  
  *   :py:class:`MTurk.Client.exceptions.RequestError`

  