Copyright | (c) 2013-2021 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 |
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.
Synopsis
- data RejectAssignment = RejectAssignment' {}
- newRejectAssignment :: Text -> Text -> RejectAssignment
- rejectAssignment_assignmentId :: Lens' RejectAssignment Text
- rejectAssignment_requesterFeedback :: Lens' RejectAssignment Text
- data RejectAssignmentResponse = RejectAssignmentResponse' {
- httpStatus :: Int
- newRejectAssignmentResponse :: Int -> RejectAssignmentResponse
- rejectAssignmentResponse_httpStatus :: Lens' RejectAssignmentResponse Int
Creating a Request
data RejectAssignment Source #
See: newRejectAssignment
smart constructor.
RejectAssignment' | |
|
Instances
:: Text | |
-> Text | |
-> RejectAssignment |
Create a value of RejectAssignment
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:assignmentId:RejectAssignment'
, rejectAssignment_assignmentId
- The ID of the assignment. The assignment must correspond to a HIT
created by the Requester.
$sel:requesterFeedback:RejectAssignment'
, rejectAssignment_requesterFeedback
- A message for the Worker, which the Worker can see in the Status section
of the web site.
Request Lenses
rejectAssignment_assignmentId :: Lens' RejectAssignment Text Source #
The ID of the assignment. The assignment must correspond to a HIT created by the Requester.
rejectAssignment_requesterFeedback :: 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
data RejectAssignmentResponse Source #
See: newRejectAssignmentResponse
smart constructor.
RejectAssignmentResponse' | |
|
Instances
newRejectAssignmentResponse Source #
Create a value of RejectAssignmentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:RejectAssignmentResponse'
, rejectAssignmentResponse_httpStatus
- The response's http status code.
Response Lenses
rejectAssignmentResponse_httpStatus :: Lens' RejectAssignmentResponse Int Source #
The response's http status code.