Skip to main content

worker_blocks

Creates, updates, deletes, gets or lists a worker_blocks resource.

Overview

Nameworker_blocks
TypeResource
Idaws.mturk.worker_blocks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
reasonstringA message explaining the reason the Worker was blocked.
worker_idstringThe ID of the Worker who accepted the HIT. (pattern: <code>^A[A-Z0-9]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_worker_blocksselectregionThe ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs.
create_worker_blockinsertregion, WorkerIdThe 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.
delete_worker_blockdeleteregionThe DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

The ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs.

SELECT
reason,
worker_id
FROM aws.mturk.worker_blocks
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.mturk.worker_blocks (
WorkerId,
Reason,
region
)
SELECT
'{{ WorkerId }}' /* required */,
'{{ Reason }}',
'{{ region }}'
;

DELETE examples

The DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.

DELETE FROM aws.mturk.worker_blocks
WHERE region = '{{ region }}' --required
;