The RegisterHITType
operation creates a new HIT type.
The RegisterHITType
operation lets you be explicit about which
HITs ought to be the same type. It also gives you error checking, to ensure that you
call the CreateHIT operation with
a valid HIT type ID.
If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.
The RegisterHITType
operation accepts parameters common to all
operations. Some common parameters are required. See Common Parameters for more
information.
The following parameters are specific to the RegisterHITType
operation:
Name | Description | Required |
---|---|---|
|
The name of the operation Type: String Valid Values: RegisterHITType Default: None |
Yes |
|
The title for HITs of this type. A Type: String Default: None Constraints: can be up to 128 characters in length |
Yes |
|
A general description of HITs of this type A Type: String Default: None Constraints: must be less than 2,000 characters in length |
Yes |
|
The amount of money the Requester will pay a user for successfully completing a HIT of this type. Type: a Price data structure Default: None |
Yes |
|
The amount of time a Worker has to complete a HIT of this type after accepting it. Type: positive integer Default: None Constraints: any integer between 30 (30 seconds) and 3153600 (365 days) |
Yes |
|
One or more words or phrases that describe a HIT of this type, separated by commas. Searches for words similar to the keywords are more likely to return the HIT in the search results. Type: String Default: None Constraints: The complete string, including commas and spaces, must be fewer than 1,000 characters. |
No |
|
An amount of time, in seconds, after an assignment for a HIT of this type has been submitted, that the assignment becomes Approved automatically, unless the Requester explicitly rejects it. Type: positive integer Default: 2592000 (30 days) Constraints: must be between 0 (immediate) and 2592000 (30 days). |
No |
|
A condition that a Worker's Qualifications must meet before the Worker is allowed to accept and complete a HIT of this type. Type: a QualificationRequirement data structure. Default: None |
No |
A successful request for the RegisterHITType
operation has a
RegisterHITTypeResult
element in the response.
The RegisterHITTypeResult
element contains the following
elements:
Name | Description |
---|---|
|
The ID of the newly registered HIT type Type: String Default: None |
The following example shows how to use the GetHITsForQualificationType
operation.
The following example registers a new HIT type.
http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester &AWSAccessKeyId=[the Requester's Access Key ID]
&Version=2008-08-02 &Operation=RegisterHITType &Signature=[signature for this request]
&Timestamp=[your system's local time]
&Title=Location%20and%20Photograph%20Identification &Description=Select%20the%20image%20that%20best%20represents... &Reward.1.Amount=5 &Reward.1.CurrencyCode=USD &AssignmentDurationInSeconds=30 &Keywords=location,%20photograph,%20image,%20identification,%20opinion
The following is an example response.
<RegisterHITTypeResult> <Request> <IsValid>True</IsValid> </Request> <HITTypeId>KZ3GKTRXBWGYX8WXBW60</HITTypeId> </RegisterHITTypeResult>