CreateAdditionalAssignmentsForHIT
Description
The CreateAdditionalAssignmentsForHIT
operation increases the maximum number of assignments of an existing HIT.
To extend the maximum number of assignments, specify the number of additional assignments.
Note
HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more assignments will result in an
AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease
exception.HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an
AWS.MechanicalTurk.HITTooOldForExtension
exception.
Request Syntax
{ "HITId":
String
, "NumberOfAdditionalAssignments":Integer
, "UniqueRequestToken":String
}
Request Parameters
The request accepts the following data in JSON format:
Name | Description | Required |
---|---|---|
|
The ID of the HIT to for which to request more assignments. Type: String |
Yes |
|
The number of additional assignments to request for this HIT. Type: Integer |
Yes |
|
A unique identifier for this request, which allows you to retry the call on error without extending the HIT multiple times. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the extend HIT already exists in the system from a previous call using the same Type: String Constraints: must not be longer than 64 characters in length. |
No |
Response Elements
A successful request for the CreateAdditionalAssignmentsForHIT
operation returns with no errors and an empty body.
Example
The following example shows how to use the CreateAdditionalAssignmentsForHIT
operation:
Sample Request
The following example adds 2 more assignments to a HIT.
POST / HTTP/1.1 Host: mturk-requester.us-east-1.amazonaws.com Content-Length: <PayloadSizeBytes> X-Amz-Date: <Date> { HITId:"123RVAZW00EXAMPLE2SL3LSK", HITNumberOfAdditionalAssignments:2 }
Sample Response
The following is an example response:
HTTP/1.1 200 OK x-amzn-RequestId: <RequestId> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Date: <Date>