Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

create_worker_block

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