Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- 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.
You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.
Synopsis
- approveAssignment :: Text -> ApproveAssignment
- data ApproveAssignment
- aaOverrideRejection :: Lens' ApproveAssignment (Maybe Bool)
- aaRequesterFeedback :: Lens' ApproveAssignment (Maybe Text)
- aaAssignmentId :: Lens' ApproveAssignment Text
- approveAssignmentResponse :: Int -> ApproveAssignmentResponse
- data ApproveAssignmentResponse
- aarsResponseStatus :: Lens' ApproveAssignmentResponse Int
Creating a Request
Creates a value of ApproveAssignment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aaOverrideRejection
- A flag indicating that an assignment should be approved even if it was previously rejected. Defaults toFalse
.aaRequesterFeedback
- A message for the Worker, which the Worker can see in the Status section of the web site.aaAssignmentId
- The ID of the assignment. The assignment must correspond to a HIT created by the Requester.
data ApproveAssignment Source #
See: approveAssignment
smart constructor.
Instances
Request Lenses
aaOverrideRejection :: Lens' ApproveAssignment (Maybe Bool) Source #
A flag indicating that an assignment should be approved even if it was previously rejected. Defaults to False
.
aaRequesterFeedback :: Lens' ApproveAssignment (Maybe Text) Source #
A message for the Worker, which the Worker can see in the Status section of the web site.
aaAssignmentId :: Lens' ApproveAssignment Text Source #
The ID of the assignment. The assignment must correspond to a HIT created by the Requester.
Destructuring the Response
approveAssignmentResponse Source #
Creates a value of ApproveAssignmentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aarsResponseStatus
- -- | The response status code.
data ApproveAssignmentResponse Source #
See: approveAssignmentResponse
smart constructor.
Instances
Response Lenses
aarsResponseStatus :: Lens' ApproveAssignmentResponse Int Source #
- - | The response status code.