src/main/java/net/leanix/api/GraphqlApi.java
public GraphQLResult processGraphQLMultipart(String graphQLRequest, File file) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'graphQLRequest' is set
    if (graphQLRequest == null) {
      throw new ApiException(400, "Missing the required parameter 'graphQLRequest' when calling processGraphQLMultipart");
    }
    
    // verify the required parameter 'file' is set
    if (file == null) {
      throw new ApiException(400, "Missing the required parameter 'file' when calling processGraphQLMultipart");
    }
    
    // create path and map variables
    String localVarPath = "/graphql/upload".replaceAll("\\{format\\}","json");

    // query params
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();


    
    if (graphQLRequest != null)
      localVarFormParams.put("graphQLRequest", graphQLRequest);
if (file != null)
      localVarFormParams.put("file", file);

    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

    final String[] localVarContentTypes = {
      "multipart/form-data"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "token" };

    GenericType<GraphQLResult> localVarReturnType = new GenericType<GraphQLResult>() {};
    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
      }
public GraphQLResult processGraphQLMultipart(String graphQLRequest, File file) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'graphQLRequest' is set
    if (graphQLRequest == null) {
      throw new ApiException(400, "Missing the required parameter 'graphQLRequest' when calling processGraphQLMultipart");
    }
    
    // verify the required parameter 'file' is set
    if (file == null) {
      throw new ApiException(400, "Missing the required parameter 'file' when calling processGraphQLMultipart");
    }
    
    // create path and map variables
    String localVarPath = "/graphql/upload".replaceAll("\\{format\\}","json");

    // query params
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();


    
    if (graphQLRequest != null)
      localVarFormParams.put("graphQLRequest", graphQLRequest);
if (file != null)
      localVarFormParams.put("file", file);

    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

    final String[] localVarContentTypes = {
      "multipart/form-data"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "token" };

    GenericType<GraphQLResult> localVarReturnType = new GenericType<GraphQLResult>() {};
    return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
      }
processGraphQLMultipart
Processes GraphQL requests, supporting multipart documents
@param graphQLRequest  (required)
@param file  (required)
@return GraphQLResult
@throws ApiException if fails to make API call