:doc:`DataExchange <../../dataexchange>` / Client / send_api_asset

**************
send_api_asset
**************



.. py:method:: DataExchange.Client.send_api_asset(**kwargs)

  

  This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.

  

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


  **Request Syntax**
  ::

    response = client.send_api_asset(
        Body='string',
        QueryStringParameters={
            'string': 'string'
        },
        AssetId='string',
        DataSetId='string',
        RequestHeaders={
            'string': 'string'
        },
        Method='string',
        Path='string',
        RevisionId='string'
    )
    
  :type Body: string
  :param Body: 

    The request body.

    

  
  :type QueryStringParameters: dict
  :param QueryStringParameters: 

    Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    Asset ID value for the API request.

    

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

    Data set ID value for the API request.

    

  
  :type RequestHeaders: dict
  :param RequestHeaders: 

    Any header value prefixed with x-amzn-dataexchange-header- will have that stripped before sending the Asset API request. Use this when you want to override a header that AWS Data Exchange uses. Alternatively, you can use the header without a prefix to the HTTP request.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type Method: string
  :param Method: 

    HTTP method value for the API request. Alternatively, you can use the appropriate verb in your request.

    

  
  :type Path: string
  :param Path: 

    URI path value for the API request. Alternatively, you can set the URI path directly by invoking /v1/{pathValue}.

    

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

    Revision ID value for the API request.

    

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

    
    ::

      {
          'Body': 'string',
          'ResponseHeaders': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Body** *(string) --* 

        The response body from the underlying API tracked by the API asset.

        
      

      - **ResponseHeaders** *(dict) --* 

        The response headers from the underlying API tracked by the API asset.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`DataExchange.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`DataExchange.Client.exceptions.ValidationException`

  
  *   :py:class:`DataExchange.Client.exceptions.InternalServerException`

  