public function updateConnection(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
    {
        $queryParams = $request->getQueryParams();
        $pageId = 0;
        if (isset($queryParams['id'])) {
            $pageId = (int)$queryParams['id'];
        }

        // Currently no return value from connection manager
        $content = [
            'success' => true,
            'message' => 'Solr connection has been updated'
        ];
        if ($pageId) {
            $connectionManager = GeneralUtility::makeInstance(ConnectionManager::class);
            $connectionManager->updateConnectionByRootPageId($pageId);
        }

        $response->getBody()->write(json_encode($content));
        return $response;
    }