The ApproveAssignment
operation approves the results of a
completed assignment.
Approving an assignment initiates two payments from the Requester's Amazon.com
account: the Worker who submitted the results is paid the reward specified in the HIT,
and Amazon Mechanical Turk fees are debited. If the Requester's account does not have
adequate funds for these payments, the call to ApproveAssignment
returns an exception, and the approval is not processed.
You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site.
The ApproveAssignment
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 ApproveAssignment
operation:
Name | Description | Required |
---|---|---|
|
The name of the operation Type: String Valid Values: ApproveAssignment Default: None |
Yes |
|
The ID of the assignment. This parameter must correspond to a HIT created by the Requester. Type: String Default: None |
Yes |
|
A message for the Worker, which the Worker can see in the Status section of the web site. Type: String Default: None Constraints: Can be up to 1024 characters (including multi-byte characters). The |
No |
A successful request for the ApproveAssignment
operation returns
with no errors. The response includes the elements described in the following table. The
operation returns no other data.
Name | Description |
---|---|
|
Contains a |
The following example shows how to use the ApproveAssignment
operation.
The following example approves an assignment identified by its assignment ID.
http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester &AWSAccessKeyId=[the Requester's Access Key ID]
&Version=2008-08-02 &Operation=ApproveAssignment &Signature=[signature for this request]
&Timestamp=[your system's local time]
&AssignmentId=123RVWYBAZW00EXAMPLE456RVWYBAZW00EXAMPLE
The following is an example response.
<ApproveAssignmentResult> <Request> <IsValid>True</IsValid> </Request> </ApproveAssignmentResult>