Controller/ArticleController.php
public function putAction(Request $request, $uuid)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);
        $action = $request->get('action');
        $data = $request->request->all();

        $document = $this->getDocumentManager()->find(
            $uuid,
            $locale,
            [
                'load_ghost_content' => false,
                'load_shadow_content' => false,
            ]
        );

        $this->get('sulu_hash.request_hash_checker')->checkHash($request, $document, $document->getUuid());

        $this->persistDocument($data, $document, $locale);
        $this->handleActionParameter($action, $document, $locale);
        $this->getDocumentManager()->flush();

        return $this->handleView(
            $this->view($document)->setSerializationContext(
                SerializationContext::create()
                    ->setSerializeNull(true)
                    ->setGroups(['defaultPage', 'defaultArticle', 'smallArticlePage'])
            )
        );
    }
public function putAction(Request $request, $uuid)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);
        $action = $request->get('action');
        $data = $request->request->all();

        $document = $this->getDocumentManager()->find(
            $uuid,
            $locale,
            [
                'load_ghost_content' => false,
                'load_shadow_content' => false,
            ]
        );

        $this->get('sulu_hash.request_hash_checker')->checkHash($request, $document, $document->getUuid());

        $this->persistDocument($data, $document, $locale);
        $this->handleActionParameter($action, $document, $locale);
        $this->getDocumentManager()->flush();

        return $this->handleView(
            $this->view($document)->setSerializationContext(
                SerializationContext::create()
                    ->setSerializeNull(true)
                    ->setGroups(['defaultPage', 'defaultArticle', 'smallArticlePage'])
            )
        );
    }
public function putAction ( Request $ request , $ uuid ) { $ locale = $ this -> getRequestParameter ( $ request , 'locale' , true ) ; $ action = $ request -> get ( 'action' ) ; $ data = $ request -> request -> all ( ) ; $ document = $ this -> getDocumentManager ( ) -> find ( $ uuid , $ locale , [ 'load_ghost_content' => false , 'load_shadow_content' => false , ] ) ; $ this -> get ( 'sulu_hash.request_hash_checker' ) -> checkHash ( $ request , $ document , $ document -> getUuid ( ) ) ; $ this -> persistDocument ( $ data , $ document , $ locale ) ; $ this -> handleActionParameter ( $ action , $ document , $ locale ) ; $ this -> getDocumentManager ( ) -> flush ( ) ; return $ this -> handleView ( $ this -> view ( $ document ) -> setSerializationContext ( SerializationContext :: create ( ) -> setSerializeNull ( true ) -> setGroups ( [ 'defaultPage' , 'defaultArticle' , 'smallArticlePage' ] ) ) ) ; }
Update articles.

@param Request $request
@param string  $uuid

@return Response
Update articles .