MTurk / Client / update_expiration_for_hit

update_expiration_for_hit#

MTurk.Client.update_expiration_for_hit(**kwargs)#

The UpdateExpirationForHIT operation allows you update the expiration time of a HIT. If you update it to a time in the past, the HIT will be immediately expired.

See also: AWS API Documentation

Request Syntax

response = client.update_expiration_for_hit(
    HITId='string',
    ExpireAt=datetime(2015, 1, 1)
)
Parameters:
  • HITId (string) –

    [REQUIRED]

    The HIT to update.

  • ExpireAt (datetime) –

    [REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • MTurk.Client.exceptions.ServiceFault

  • MTurk.Client.exceptions.RequestError