:doc:`Connect <../../connect>` / Client / update_test_case

****************
update_test_case
****************



.. py:method:: Connect.Client.update_test_case(**kwargs)

  

  Updates any of the metadata for a test case, such as the name, description, and status or content of an existing test case. This API doesn't allow customers to update the tags of the test case resource for the specified Amazon Connect instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateTestCase>`_  


  **Request Syntax**
  ::

    response = client.update_test_case(
        InstanceId='string',
        TestCaseId='string',
        Content='string',
        EntryPoint={
            'Type': 'VOICE_CALL',
            'VoiceCallEntryPointParameters': {
                'SourcePhoneNumber': 'string',
                'DestinationPhoneNumber': 'string',
                'FlowId': 'string'
            }
        },
        InitializationData='string',
        Name='string',
        Description='string',
        Status='PUBLISHED'|'SAVED',
        LastModifiedTime=datetime(2015, 1, 1),
        LastModifiedRegion='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance.

    

  
  :type TestCaseId: string
  :param TestCaseId: **[REQUIRED]** 

    The identifier of the test case to update.

    

  
  :type Content: string
  :param Content: 

    The JSON string that represents the content of the test.

    

  
  :type EntryPoint: dict
  :param EntryPoint: 

    Defines the starting point for your test.

    

  
    - **Type** *(string) --* 

      The type of entry point.

      

    
    - **VoiceCallEntryPointParameters** *(dict) --* 

      Parameters for voice call entry point.

      

    
      - **SourcePhoneNumber** *(string) --* 

        The source phone number for the test.

        

      
      - **DestinationPhoneNumber** *(string) --* 

        The destination phone number for the test.

        

      
      - **FlowId** *(string) --* 

        The flow identifier for the test.

        

      
    
  
  :type InitializationData: string
  :param InitializationData: 

    Defines the test attributes for precise data representation.

    

  
  :type Name: string
  :param Name: 

    The name of the test case.

    

  
  :type Description: string
  :param Description: 

    The description of the test case.

    

  
  :type Status: string
  :param Status: 

    Indicates the test status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content. The SAVED status does not initiate validation of the content.

    

  
  :type LastModifiedTime: datetime
  :param LastModifiedTime: 

    The time at which the resource was last modified.

    

  
  :type LastModifiedRegion: string
  :param LastModifiedRegion: 

    The region in which the resource was last modified

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.DuplicateResourceException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidTestCaseException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.AccessDeniedException`

  