void createApplicationImage(Application.Function function, ApiKeyData apiKey) {
        callController(HttpMethod.POST, "/v1/image/" + function.getId(),
                request -> {
                    request.putHeader(Proxy.HEADER_API_KEY, apiKey.getPerRequestKey());
                    request.putHeader(HttpHeaders.CONTENT_TYPE, Proxy.HEADER_CONTENT_TYPE_APPLICATION_JSON);

                    CreateImageRequest body = new CreateImageRequest(function.getRuntime(), function.getTargetFolder());
                    return ProxyUtil.convertToString(body);
                },
                body -> convertServerSentEvent(body, EmptyResponse.class));
    }
A web client to Application Controller Web Service that manages deployments for applications with functions.
server/src/main/java/com/epam/aidial/core/server/service/ApplicationOperatorService.java