Amazon Mechanical Turk
API Reference (API Version 2012-03-25)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

UpdateQualificationType

Description

The UpdateQualificationType operation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure. Only the owner of a Qualification type can modify its attributes.

Most attributes of a Qualification type can be changed after the type has been created. However, the Name and Keywords fields cannot be modified. The RetryDelayInSeconds parameter can be modified or added to change the delay or to enable retries, but RetryDelayInSeconds cannot be used to disable retries.

Each Qualification type name must be unique across all of your Qualification types. If you want to reuse the name of an existing Qualification type, you must first dispose of the existing Qualification type using DisposeQualificationType and then create a new Qualification type with the name of the disposed type using CreateQualificationType.

If you want to disable retries, you must dispose of the existing retry-enabled Qualification type using DisposeQualificationType and then create a new Qualification type with retries disabled using CreateQualificationType.

You can use this operation to update the test for a Qualification type. The test is updated based on the values specified for the Test, TestDurationInSeconds and AnswerKey parameters. All three parameters specify the updated test. If you are updating the test for a type, you must specify the Test and TestDurationInSeconds parameters. The AnswerKey parameter is optional; omitting it specifies that the updated test does not have an answer key.

If you omit the Test parameter, the test for the Qualification type is unchanged. There is no way to remove a test from a Qualification type that has one. If the type already has a test, you cannot update it to be AutoGranted. If the Qualification type does not have a test and one is provided by an update, the type will henceforth have a test.

If you want to update the test duration or answer key for an existing test without changing the questions, you must specify a Test parameter with the original questions, along with the updated values.

If you provide an AnswerKey parameter, Amazon Mechanical Turk processes requests for the Qualification automatically, and assigns the Worker a Qualification with a value calculated from the AnswerKey and the answers submitted by the Worker.

If you provide an updated Test but no AnswerKey, the new test will not have an answer key. Requests for such Qualifications must be granted manually.

You can also update the AutoGranted and AutoGrantedValue attributes of the Qualification type.

Note

A Qualification type cannot be configured with both the Test parameter specified and the AutoGranted parameter set to true. Currently, there is no way to remove a test from a Qualification type that has one. A Qualification type with a test cannot be re-configured to use the auto-granting feature.

Request Parameters

The UpdateQualificationType operation accepts parameters common to all operations. Some common parameters are required. See Common Parameters for more information.

Note

If an optional request parameter is not specified, the UpdateQualificationType operation does not modify the corresponding field of the QualificationType being updated.

The following parameters are specific to the UpdateQualificationType operation:

NameDescriptionRequired

Operation

The name of the operation.

Type: String

Valid Values: UpdateQualificationType

Default: None

Yes

QualificationTypeId

The ID of the Qualification type to update.

Type: String

Default: None

Yes

RetryDelayInSeconds

The amount of time, in seconds, that Workers must wait after requesting a Qualification of the specified Qualification type before they can retry the Qualification request.

It is not possible to disable retries for a Qualification type after it has been created with retries enabled. If you want to disable retries, you must dispose of the existing retry-enabled Qualification type using DisposeQualificationType and then create a new Qualification type with retries disabled using CreateQualificationType.

Type: Non-negative integer

Default: None. If not specified, the RetryDelayInSeconds value of the specified Qualification type will not be changed.

No

QualificationTypeStatus

The new status of the Qualification type.

Type: String

Valid Values: Active | Inactive

Default: None

No

Description

The new description of the Qualification type.

Type: String

Default: None

No

Test

The questions for a Qualification test a Worker must answer correctly to obtain a Qualification of this type.

Type: A QuestionForm data structure.

Default: None

Constraints: Cannot be specified if AutoGranted is true. If you update the AnswerKey, you must provide the Test parameter, even if the test has not changed. If you update the TestDurationInSeconds, you must provide the Test parameter, even if the test has not changed.

No

AnswerKey

The answers to the Qualification test specified in the Test parameter.

Type: An AnswerKey data structure.

Default: None

No

TestDurationInSeconds

The amount of time, in seconds, that a Worker has to complete the Qualification test, starting from when the Worker requested the Qualification.

Type: Positive integer

Default: None

Conditions: Required if the Test parameter is specified.

Conditional

AutoGranted

Specifies whether requests for the Qualification type will be granted immediately, without prompting the Worker with a Qualification test.

Type: Boolean

Valid Values: true | false

Default: None

Conditions: Cannot be true if Test is specified.

Conditional

AutoGrantedValue

The Qualification value to use if AutoGranted is true.

Type: Integer

Default: 1

No

Response Elements

A successful request for the UpdateQualificationType operation has a QualificationType element in the response, as described in the following table:

NameDescription

QualificationType

Contains a QualificationType data structure.

Type: A QualificationType data structure.

Examples

The following example shows how to use the UpdateQualificationType operation.

Sample Request

The following example changes the QualificationTypeStatus of a Qualification type.

https://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
&AWSAccessKeyId=[the Requester's Access Key ID]
&Version=2012-03-25
&Operation=UpdateQualificationType
&Signature=[signature for this request]
&Timestamp=[your system's local time]
&QualificationTypeId=789RVWYBAZW00EXAMPLE
&QualificationTypeStatus=Inactive
         

Sample Response

The following is an example response.

<UpdateQualificationTypeResult>
  <Request>
    <IsValid>True</IsValid>
  </Request>
  <QualificationType>
    <QualificationTypeId>789RVWYBAZW00EXAMPLE</QualificationTypeId>
    <CreationTime>2009-06-15T12:00:01Z</CreationTime>
    <Name>EnglishWritingAbility</Name>
    <Description>The ability to write and edit text...</Description>
    <Keywords>English, text, write, edit, language</Keywords>
    <QualificationTypeStatus>Active</QualificationTypeStatus>
    <RetryDelayInSeconds>86400</RetryDelayInSeconds>
    <IsRequestable>true</IsRequestable>
  </QualificationType>
</UpdateQualificationTypeResult>