:doc:`MTurk <../../mturk>` / Client / update_expiration_for_hit

*************************
update_expiration_for_hit
*************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHIT>`_  


  **Request Syntax**
  ::

    response = client.update_expiration_for_hit(
        HITId='string',
        ExpireAt=datetime(2015, 1, 1)
    )
    
  :type HITId: string
  :param HITId: **[REQUIRED]** 

    The HIT to update.

    

  
  :type ExpireAt: datetime
  :param ExpireAt: **[REQUIRED]** 

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

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MTurk.Client.exceptions.ServiceFault`

  
  *   :py:class:`MTurk.Client.exceptions.RequestError`

  