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

***************************
update_contact_flow_content
***************************



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

  

  Updates the specified flow.

   

  You can also create and update flows using the `Amazon Connect Flow language <https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html>`__.

   

  Use the ``$SAVED`` alias in the request to describe the ``SAVED`` content of a Flow. For example, ``arn:aws:.../contact-flow/{id}:$SAVED``. After a flow is published, ``$SAVED`` needs to be supplied to view saved content that has not been published.

  

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


  **Request Syntax**
  ::

    response = client.update_contact_flow_content(
        InstanceId='string',
        ContactFlowId='string',
        Content='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance.

    

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

    The identifier of the flow.

    

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

    The JSON string that represents the content of the flow. For an example, see `Example flow in Amazon Connect Flow language <https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html>`__.

     

    Length Constraints: Minimum length of 1. Maximum length of 256000.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

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

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

  