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 operation:
GetAssignmentsForHIT
The following example of an Assignment data structure could be
returned by the GetAssignmentsForHIT operation.
GetAssignmentsForHIT returns zero or more
Assignment elements for a "reviewable" HIT.
<Assignment>
<AssignmentId>123RVWYBAZW00EXAMPLE456RVWYBAZW00EXAMPLE</AssignmentId>
<WorkerId>AZ3456EXAMPLE</WorkerId>
<HITId>123RVWYBAZW00EXAMPLE</HITId>
<AssignmentStatus>Submitted</AssignmentStatus>
<Deadline>2005-12-01T23:59:59Z</Deadline>
<AcceptTime>2005-12-01T12:00:00Z</AcceptTime>
<SubmitTime>2005-12-07T23:59:59Z</SubmitTime>
<Answer>
<QuestionFormAnswers>
[XML-encoded Answer data]
</QuestionFormAnswers>
</Answer>
</Assignment>The Assignment structure may contain the following elements.
| Name | Description | Value |
|---|---|---|
AssignmentId
|
A unique identifier for the assignment. An assignment
is created and given a unique ID when a Worker accepts
a HIT. It retains this ID forever, even if the Worker
returns it by calling
|
A valid assignment ID |
WorkerId
|
The user ID of the Worker that accepted the HIT. |
A valid user ID |
HITId
|
The ID of the HIT, as returned by |
A valid HIT ID |
AssignmentStatus
|
The status of the assignment. |
|
AutoApprovalTime
|
If results have been submitted, This value is omitted from the assignment if results have not yet been submitted. |
A dateTime in the Coordinated Universal Time (Greenwich Mean Time) time zone, such as |
AcceptTime
|
The date and time the assignment was accepted by the Worker. |
A dateTime in the Coordinated Universal Time (Greenwich Mean Time) time zone, such as |
SubmitTime
|
If results have been submitted by the Worker, This value is omitted from the assignment if results have not yet been submitted by the Worker. |
A dateTime in the Coordinated Universal Time (Greenwich Mean Time) time zone, such as |
ApprovalTime
|
If results have been submitted by the Worker and approved or rejected by the Requester, This value is omitted from the assignment if results have not yet been approved or rejected by the Requester. |
A dateTime in the Coordinated Universal Time (Greenwich Mean Time) time zone, such as |
Deadline
|
The date and time of the assignment's deadline. If results are not submitted prior to this deadline, the assignment is considered "abandoned," and the HIT may become available for other Workers to accept (if the HIT has not expired). Results will not be accepted after the assignment has passed the deadline. This value is derived from the HIT's deadline specification and the date and time the Worker accepted the HIT. |
A dateTime in the Coordinated Universal Time (Greenwich Mean Time) time zone, such as |
Answer
|
The answer data submitted by the Worker via This value is an XML data structure. See the QuestionFormAnswers data structure for more information. |
XML data for the answers, a QuestionFormAnswers data structure |
RequesterFeedback
|
The feedback string included with the call to the
This field is not returned with assignment data by
default. To request this field, specify a response
group of |
A string |