client-api/src/main/java/com/streamsets/datacollector/client/api/PreviewApi.java
public PreviewInfoJson previewWithOverride (String pipelineId, List<StageOutputJson> stageOutputsToOverrideJson,
                                              String rev, Integer batchSize, Integer batches, Boolean skipTargets,
                                              String endStage, Long timeout) throws ApiException {
    Object postBody = stageOutputsToOverrideJson;
    byte[] postBinaryBody = null;

    // verify the required parameter 'pipelineId' is set
    if (pipelineId == null) {
      throw new ApiException(400, "Missing the required parameter 'pipelineId' when calling previewWithOverride");
    }

    // verify the required parameter 'stageOutputsToOverrideJson' is set
    if (stageOutputsToOverrideJson == null) {
      throw new ApiException(400,
          "Missing the required parameter 'stageOutputsToOverrideJson' when calling previewWithOverride");
    }

    // create path and map variables
    String path = "/v1/pipeline/{pipelineId}/preview".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "pipelineId" + "\\}", apiClient.escapeString(pipelineId.toString()));

    // query params
    List<Pair> queryParams = new ArrayList<Pair>();
    Map<String, String> headerParams = new HashMap<String, String>();
    Map<String, Object> formParams = new HashMap<String, Object>();


    queryParams.addAll(apiClient.parameterToPairs("", "rev", rev));

    queryParams.addAll(apiClient.parameterToPairs("", "batchSize", batchSize));

    queryParams.addAll(apiClient.parameterToPairs("", "batches", batches));

    queryParams.addAll(apiClient.parameterToPairs("", "skipTargets", skipTargets));

    queryParams.addAll(apiClient.parameterToPairs("", "endStage", endStage));

    queryParams.addAll(apiClient.parameterToPairs("", "timeout", timeout));






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

    final String[] contentTypes = {

    };
    final String contentType = apiClient.selectHeaderContentType(contentTypes);

    String[] authNames = new String[] { "basic" };





    TypeRef returnType = new TypeRef<PreviewInfoJson>() {};
    return apiClient.invokeAPI(path, "POST", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);




  }
public PreviewInfoJson previewWithOverride (String pipelineId, List<StageOutputJson> stageOutputsToOverrideJson,
                                              String rev, Integer batchSize, Integer batches, Boolean skipTargets,
                                              String endStage, Long timeout) throws ApiException {
    Object postBody = stageOutputsToOverrideJson;
    byte[] postBinaryBody = null;

    // verify the required parameter 'pipelineId' is set
    if (pipelineId == null) {
      throw new ApiException(400, "Missing the required parameter 'pipelineId' when calling previewWithOverride");
    }

    // verify the required parameter 'stageOutputsToOverrideJson' is set
    if (stageOutputsToOverrideJson == null) {
      throw new ApiException(400,
          "Missing the required parameter 'stageOutputsToOverrideJson' when calling previewWithOverride");
    }

    // create path and map variables
    String path = "/v1/pipeline/{pipelineId}/preview".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "pipelineId" + "\\}", apiClient.escapeString(pipelineId.toString()));

    // query params
    List<Pair> queryParams = new ArrayList<Pair>();
    Map<String, String> headerParams = new HashMap<String, String>();
    Map<String, Object> formParams = new HashMap<String, Object>();


    queryParams.addAll(apiClient.parameterToPairs("", "rev", rev));

    queryParams.addAll(apiClient.parameterToPairs("", "batchSize", batchSize));

    queryParams.addAll(apiClient.parameterToPairs("", "batches", batches));

    queryParams.addAll(apiClient.parameterToPairs("", "skipTargets", skipTargets));

    queryParams.addAll(apiClient.parameterToPairs("", "endStage", endStage));

    queryParams.addAll(apiClient.parameterToPairs("", "timeout", timeout));






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

    final String[] contentTypes = {

    };
    final String contentType = apiClient.selectHeaderContentType(contentTypes);

    String[] authNames = new String[] { "basic" };





    TypeRef returnType = new TypeRef<PreviewInfoJson>() {};
    return apiClient.invokeAPI(path, "POST", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);




  }
Run Pipeline preview

@param pipelineId
@param stageOutputsToOverrideJson
@param rev
@param batchSize
@param batches
@param skipTargets
@param endStage
@param timeout
@return PreviewInfoJson