Last chance! 50% off unlimited learning
Sale ends in
Change the HITType of a HIT from one HITType to another (e.g., to change the title, description, or qualification requirements associated with a HIT). This will cause a HIT to no longer be grouped with HITs of the previous HITType and instead be grouped with those of the new HITType. You cannot change the payment associated with a HIT without expiring the current HIT and creating a new one.
ChangeHITType(hit = NULL, old.hit.type = NULL, new.hit.type = NULL,
title = NULL, description = NULL, reward = NULL, duration = NULL,
keywords = NULL, auto.approval.delay = as.integer(2592000),
qual.req = NULL, old.annotation = NULL,
verbose = getOption("pyMTurkR.verbose", TRUE))
An optional character string containing the HITId whose HITTypeId
is to be changed, or a vector of character strings containing each of
multiple HITIds to be changed. Must specify hit
xor
old.hit.type
xor annotation
.
An optional character string containing the HITTypeId
(or a vector of HITTypeIds) whose HITs are to be changed to the new
HITTypeId. Must specify hit
xor old.hit.type
xor
annotation
.
An optional character string specifying the new HITTypeId that this HIT should be visibly grouped with (and whose properties, e.g. reward amount, this HIT should inherit).
An optional character string containing the title for the HITType. All HITs of this HITType will be visibly grouped to workers according to this title.
An optional character string containing a description of the HITType. This is visible to workers.
An optional character string containing the per-assignment reward amount, in U.S. Dollars (e.g., “0.15”).
An optional character string containing the duration of each
HIT, in seconds (for example, as returned by seconds
).
An optional character string containing a comma-separated set of keywords by which workers can search for HITs of this HITType.
An optional character string specifying the
amount of time, in seconds (for example, as returned by
seconds
), before a submitted assignment is automatically
granted.
An optional character string containing one a
QualificationRequirement data structure, as returned by
GenerateQualificationRequirement
.
An optional character string specifying the value of
the RequesterAnnotation
field for a batch of HITs to change the
HITType of. This can be used to change the HITType for all HITs from a
“batch” created in the online Requester User Interface (RUI). To use
a batch ID, the batch must be written in a character string of the form
“BatchId:78382;”, where “73832” is the batch ID shown in the
RUI. Must specify hit
xor old.hit.type
xor annotation
.
Optionally print the results of the API request to the
standard output. Default is taken from getOption('pyMTurkR.verbose',
TRUE)
.
A data frame listing the HITId of each HIT who HITType was changed, its old HITTypeId and new HITTypeId, and whether the request for each HIT was valid.
This function changes the HITType of a specified HIT (or multiple specific
HITs or all HITs of a specified HITType) to a new HITType. hit
xor
old.hit.type
must be specified. Then, either a new HITTypeId can be
specified or a new HITType can be created by atomically by specifying the
characteristics of the new HITType.
changehittype()
and UpdateHITTypeOfHIT()
are aliases.
# NOT RUN {
# }
# NOT RUN {
hittype1 <- RegisterHITType(title = "10 Question Survey",
description = "Complete a 10-question survey about news coverage and your opinions",
reward = ".20",
duration = seconds(hours=1),
keywords = "survey, questionnaire, politics")
a <- GenerateExternalQuestion("https://www.example.com/", "400")
hit <- CreateHIT(hit.type = hittype1$HITTypeId,
assignments = 1,
expiration = seconds(days=1),
question = a$string)
# change to HITType with new reward amount
hittype2 <- RegisterHITType(title = "10 Question Survey",
description = "Complete a 10-question survey about news coverage and your opinions",
reward = ".45",
duration = seconds(hours=1),
keywords = "survey, questionnaire, politics")
ChangeHITType(hit = hit$HITId,
new.hit.type=hittype2$HITTypeId)
# Change to new HITType, with arguments stated atomically
ChangeHITType(hit = hit$HITId,
title = "10 Question Survey",
description = "Complete a 10-question survey about news coverage and your opinions",
reward = ".20",
duration = seconds(hours=1),
keywords = "survey, questionnaire, politics")
# expire and dispose HIT
ExpireHIT(hit = hit$HITId)
DeleteHIT(hit = hit$HITId)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab