Amazon Mechanical Turk
API Reference (API Version 2017-01-17)

UpdateExpirationForHIT

Description

The UpdateExpirationForHIT operation allows you extend the expiration time of a HIT beyond is current expiration or expire a HIT immediately. You cannot shorten the expiration time so that you're not affecting Workers who have accepted your HIT.

To expire a HIT immediately, provide the value 0 or set ExpireAt to a time in the past.

Request Syntax

{ "HITId": String, "ExpireAt": Timestamp }

Request Parameters

The request accepts the following data in JSON format:

Name Description Required

HITId

The HIT to update.

Type: String

Yes

ExpireAt

The date and time at which you want the HIT to expire

Type: Timestamp

Yes

Response Elements

A successful request for the UpdateExpirationForHIT operation returns with no errors and an empty body.