Assignment
Description
The Assignment data structure represents a single assignment of a HIT to a Worker. The assignment tracks the Worker's efforts to complete the HIT, and contains the results for later retrieval.
The Assignment data structure is used as a response element for the following operations:
-
GetAssignment
-
ListAssignmentsForHIT
Elements
The Assignment structure can contain the following elements.
Name | Description | Required |
---|---|---|
|
A unique identifier for the assignment. Can be up to 255 bytes in length. Type: String Default: None |
No |
|
The ID of the Worker who accepted the HIT. Can be up to 255 bytes in length. Type: String Default: None |
No |
|
The ID of the HIT. Can be up to 255 bytes in length. Type: String Default: None |
No |
|
The status of the assignment Type: String Valid Values: Submitted | Approved | Rejected Default: None |
No |
|
If results have been submitted, Type: a dateTime Default: None |
No |
|
The date and time the Worker accepted the assignment. Type: a dateTime Default: None |
No |
|
If the Worker has submitted results, Type: a dateTime Default: None |
No |
|
If the Worker has submitted results and the Requester has approved the results,
Type: a dateTime Default: None. Note: This value is omitted from the assignment if the Requester has not yet approved the results. |
No |
|
If the Worker has submitted results and the Requester has rejected the
results, Type: a dateTime Default: None. Note: This value is omitted from the assignment if the Requester has not yet rejected the results. |
No |
|
The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT. Type: a dateTime Default: None |
No |
|
The Worker's answers submitted for the HIT contained in a Type: a QuestionFormAnswers data structure Default: None |
No |
|
The feedback string included with the call to the Type: String Default: None |
No |
Example
The following example shows an Assignment data structure returned by the ListAssignmentsForHIT
operation.
The ListAssignmentsForHIT
operation returns zero or more Assignment
elements for a
Reviewable HIT.
Assignment:{ AssignmentId: "123RVWYBAZW00EXAMPLE456RVWYBAZW00EXAMPLE", WorkerId:"AZ3456EXAMPLE", HITId:"123RVWYBAZW00EXAMPLE", AssignmentStatus:"Submitted", Deadline: "2005-12-01T23:59:59Z", AcceptTime: "2005-12-01T12:00:00Z", SubmitTime: "2005-12-07T23:59:59Z", Answer:{ QuestionFormAnswers:
[XML-encoded Answer data]
} }