Amazon Mechanical Turk
API Reference (API Version 2012-03-25)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

WorkerBlock

Description

The WorkerBlock data structure represents a Worker who has been blocked. It has two elements: the WorkerId and the Reason for the block.

The WorkerBlock data structure is used in the results of the following operation:

Elements

The WorkerBlock structure contains the elements described in the following table.

NameDescription

WorkerId

The ID of the Worker who accepted the HIT.

Type: String

Default: None

Reason

A message explaining the reason the Worker was blocked.

Type: String

Default: None

Example

The following example shows a sample WorkerBlock data structure in a response from the GetBlockedWorkers operation.

In a SOAP request, the WorkerBlock data structure is specified as the WorkerBlock parameter in XML:

<WorkerBlock>
  <WorkerId>AZ3456EXAMPLE</WorkerId>
  <Reason>After several  warnings, he continued to submit answers without reading the instructions carefully.</Reason>
</WorkerBlock>

In a REST request, the components of the WorkerBlock data structure are specified as separate parameters:

https://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
[...]
&WorkerBlock.1.WorkerId=AZ3456EXAMPLE
&WorkerBlock.1.Reason=After%20several%20warnings,%20he%20continued%20to%20submit%20answers%20without%20reading%20the%20instructions%20carefully