public function putAction($webspace, $id, Request $request)
    {
        $manager = $this->get('sulu_custom_urls.manager');

        $document = $manager->save($id, $request->request->all());
        $this->get('sulu_document_manager.document_manager')->flush();

        $context = new Context();
        $context->setGroups(['defaultCustomUrl', 'fullRoute']);

        return $this->handleView($this->view($document)->setContext($context));
    }