Description Usage Arguments Details Value Author(s) References See Also Examples
Force a HIT to expire immediately, as opposed to at its prespecified expiration time. Expired HITs can be extended with the ExtendHIT
operation.
1 2 |
hit |
A character string containing a HITId or a vector of character strings containing multiple HITIds. Must specify |
hit.type |
An optional character string containing a HITTypeId (or a vector of HITTypeIds). Must specify |
annotation |
An optional character string specifying the value of the |
verbose |
Optionally print the results of the API request to the standard output. Default is taken from |
... |
Additional arguments passed to |
A function to (prematurely) expire a HIT (or multiple HITs), thereby preventing any additional assignments from being completed. Pending assignments can still be submitted. An expired HIT can be reactivated by adding additional time to its expiration using ExtendHIT
.
expire()
is an alias.
A data frame containing the HITId(s) and whether each expiration request was valid.
Thomas J. Leeper
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
a <- GenerateExternalQuestion("http://www.example.com/","400")
hit1 <-
CreateHIT(hit.type="2FFNCWYB49F9BBJWA4SJUNST5OFSOW", question = a$string)
# expire HIT
ExpireHIT(hit = hit1$HITId)
# Expire all HITs of a given batch from the RUI
ExpireHIT(annotation="BatchId:78382;")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.