public void createSubscription(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException {
    Object localVarPostBody = createSubscriptionRequest;
    
    // create path and map variables
    String localVarPath = "/events";

    StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
    String localVarQueryParameterBaseName;
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

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

    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "Bearer", "UsernamePassword" };

    apiClient.invokeAPI(
        localVarPath,
        "POST",
        localVarQueryParams,
        localVarCollectionQueryParams,
        localVarQueryStringJoiner.toString(),
        localVarPostBody,
        localVarHeaderParams,
        localVarCookieParams,
        localVarFormParams,
        localVarAccept,
        localVarContentType,
        localVarAuthNames,
        null
    );
  }
Create a new subscription as separate resource
Create a new subscription. You can later make GET request on this created subscription to start the subscription. If subscription is not used within one minute, subscription will be deleted automatically. You can start a created subscription multiple times. &lt;br&gt;&lt;br&gt; To create a subscription in this way allows to setup more complex settings within the subscription (queueing, data change filter, ...).
@param createSubscriptionRequest The data for the new subscription (optional)
@throws ApiException if fails to make API call
plc4j/drivers/ctrlx/src/main/java/org/apache/plc4x/java/ctrlx/readwrite/rest/datalayer/api/SubscriptionsApi.java