UnblockWorker

Description

The UnblockWorker operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the BlockWorker 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.

Request Parameters

The UnblockWorker operation accepts parameters common to all operations. Some common parameters are required. See Common Parameters for more information.

The following parameters are specific to the UnblockWorker operation:

NameDescriptionRequired

Operation

The name of the operation

Type: String

Valid Values: UnblockWorker

Default: None

Yes

WorkerId

The ID of the Worker to unblock.

Type: String

Default: None

Yes

Reason

A message that explains the reason for unblocking the Worker. The Worker does not see this message.

Type: String

Default: None

No

Response Elements

A successful request for the UnblockWorker operation returns with no errors. The response includes the elements described in the following table. The operation returns no other data.

NameDescription

UnblockWorkerResult

Contains a Request element if the Request ResposeGroup is specified.

Examples

The following example shows how to use the UnblockWorker operation.

Sample Request

The following example unblocks a Worker and allows that Worker to work on your HITs.

http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
&AWSAccessKeyId=[the Requester's Access Key ID]
&Version=2008-08-02
&Operation=UnblockWorker
&Signature=[signature for this request]
&Timestamp=[your system's local time]
&WorkerId=AZ3456EXAMPLE
         

Sample Response

The following is an example response.

<UnblockWorkerResult>
  <Request>
    <IsValid>True</IsValid>
  </Request>
</UnblockWorkerResult>