RegisterHITType

Description

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.

Request Parameters

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:

NameDescriptionRequired

Operation

The name of the operation

Type: String

Valid Values: RegisterHITType

Default: None

Yes

Title

The title for HITs of this type.

A Title parameter should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.

Type: String

Default: None

Constraints: can be up to 128 characters in length

Yes

Description

A general description of HITs of this type

A Description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it. It should not include instructions for completing the HIT.

Type: String

Default: None

Constraints: must be less than 2,000 characters in length

Yes

Reward

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

AssignmentDurationInSeconds

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

Keywords

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

AutoApprovalDelayInSeconds

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

QualificationRequirement

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

Response Elements

A successful request for the RegisterHITType operation has a RegisterHITTypeResult element in the response.

The RegisterHITTypeResult element contains the following elements:

NameDescription

HITTypeId

The ID of the newly registered HIT type

Type: String

Default: None

Examples

The following example shows how to use the GetHITsForQualificationType operation.

Sample Request

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
         

Sample Response

The following is an example response.

<RegisterHITTypeResult>
  <Request>
    <IsValid>True</IsValid>
  </Request>
  <HITTypeId>KZ3GKTRXBWGYX8WXBW60</HITTypeId>
</RegisterHITTypeResult>