{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-mechanical-turk/refs/heads/main/json-schema/amazon-mechanical-turk-hit-schema.json",
"title": "HIT",
"description": " The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT.",
"type": "object",
"properties": {
"HITId": {
"allOf": [
{
"$ref": "#/components/schemas/EntityId"
},
{
"description": " A unique identifier for the HIT."
}
]
},
"HITTypeId": {
"allOf": [
{
"$ref": "#/components/schemas/EntityId"
},
{
"description": "The ID of the HIT type of this HIT"
}
]
},
"HITGroupId": {
"allOf": [
{
"$ref": "#/components/schemas/EntityId"
},
{
"description": " The ID of the HIT Group of this HIT."
}
]
},
"HITLayoutId": {
"allOf": [
{
"$ref": "#/components/schemas/EntityId"
},
{
"description": " The ID of the HIT Layout of this HIT."
}
]
},
"CreationTime": {
"allOf": [
{
"$ref": "#/components/schemas/Timestamp"
},
{
"description": " The date and time the HIT was created."
}
]
},
"Title": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": " The title of the HIT."
}
]
},
"Description": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": " A general description of the HIT."
}
]
},
"Question": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": " The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure."
}
]
},
"Keywords": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": " One or more words or phrases that describe the HIT, separated by commas. Search terms similar to the keywords of a HIT are more likely to have the HIT in the search results."
}
]
},
"HITStatus": {
"allOf": [
{
"$ref": "#/components/schemas/HITStatus"
},
{
"description": "The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed. "
}
]
},
"MaxAssignments": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": "The number of times the HIT can be accepted and completed before the HIT becomes unavailable. "
}
]
},
"Reward": {
"$ref": "#/components/schemas/CurrencyAmount"
},
"AutoApprovalDelayInSeconds": {
"allOf": [
{
"$ref": "#/components/schemas/Long"
},
{
"description": "The amount of time, in seconds, after the Worker submits an assignment for the HIT that the results are automatically approved by Amazon Mechanical Turk. This is the amount of time the Requester has to reject an assignment submitted by a Worker before the assignment is auto-approved and the Worker is paid. "
}
]
},
"Expiration": {
"allOf": [
{
"$ref": "#/components/schemas/Timestamp"
},
{
"description": "The date and time the HIT expires."
}
]
},
"AssignmentDurationInSeconds": {
"allOf": [
{
"$ref": "#/components/schemas/Long"
},
{
"description": " The length of time, in seconds, that a Worker has to complete the HIT after accepting it."
}
]
},
"RequesterAnnotation": {
"allOf": [
{
"$ref": "#/components/schemas/String"
},
{
"description": " An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT."
}
]
},
"QualificationRequirements": {
"allOf": [
{
"$ref": "#/components/schemas/QualificationRequirementList"
},
{
"description": " Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure. "
}
]
},
"HITReviewStatus": {
"allOf": [
{
"$ref": "#/components/schemas/HITReviewStatus"
},
{
"description": " Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate."
}
]
},
"NumberOfAssignmentsPending": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": " The number of assignments for this HIT that are being previewed or have been accepted by Workers, but have not yet been submitted, returned, or abandoned."
}
]
},
"NumberOfAssignmentsAvailable": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": " The number of assignments for this HIT that are available for Workers to accept."
}
]
},
"NumberOfAssignmentsCompleted": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": " The number of assignments for this HIT that have been approved or rejected."
}
]
}
}
}