:doc:`AppSync <../../appsync>` / Client / flush_api_cache

***************
flush_api_cache
***************



.. py:method:: AppSync.Client.flush_api_cache(**kwargs)

  

  Flushes an ``ApiCache`` object.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache>`_  


  **Request Syntax**
  ::

    response = client.flush_api_cache(
        apiId='string'
    )
    
  :type apiId: string
  :param apiId: **[REQUIRED]** 

    The API ID.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      Represents the output of a ``FlushApiCache`` operation.

      
  
  **Exceptions**
  
  *   :py:class:`AppSync.Client.exceptions.BadRequestException`

  
  *   :py:class:`AppSync.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`AppSync.Client.exceptions.NotFoundException`

  
  *   :py:class:`AppSync.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`AppSync.Client.exceptions.InternalFailureException`

  