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 RejectAssignment
operation rejects the results of a completed assignment.
You can include an optional feedback message with the rejection, which the Worker can see in the Status section of the web site. When you include a feedback message with the rejection, it helps the Worker understand why the assignment was rejected, and can improve the quality of the results the Worker submits in the future.
Only the Requester who created the HIT can reject an assignment for the HIT.
- rejectAssignment :: Text -> Text -> RejectAssignment
- data RejectAssignment
- raAssignmentId :: Lens' RejectAssignment Text
- raRequesterFeedback :: Lens' RejectAssignment Text
- rejectAssignmentResponse :: Int -> RejectAssignmentResponse
- data RejectAssignmentResponse
- rarsResponseStatus :: Lens' RejectAssignmentResponse Int
Creating a Request
Creates a value of RejectAssignment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
raAssignmentId
- The ID of the assignment. The assignment must correspond to a HIT created by the Requester.raRequesterFeedback
- A message for the Worker, which the Worker can see in the Status section of the web site.
data RejectAssignment Source #
See: rejectAssignment
smart constructor.
Request Lenses
raAssignmentId :: Lens' RejectAssignment Text Source #
The ID of the assignment. The assignment must correspond to a HIT created by the Requester.
raRequesterFeedback :: Lens' RejectAssignment Text Source #
A message for the Worker, which the Worker can see in the Status section of the web site.
Destructuring the Response
rejectAssignmentResponse Source #
Creates a value of RejectAssignmentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rarsResponseStatus
- -- | The response status code.
data RejectAssignmentResponse Source #
See: rejectAssignmentResponse
smart constructor.
Response Lenses
rarsResponseStatus :: Lens' RejectAssignmentResponse Int Source #
- - | The response status code.