create_worker_block

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

Request Syntax

response = client.create_worker_block(
    WorkerId='string',
    Reason='string'
)
Parameters
  • WorkerId (string) --

    [REQUIRED]

    The ID of the Worker to block.

  • Reason (string) --

    [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.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • MTurk.Client.exceptions.ServiceFault
  • MTurk.Client.exceptions.RequestError