<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No effect after a document update with API REST in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/no-effect-after-a-document-update-with-api-rest/m-p/326480#M13481</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;use header &lt;CODE&gt;Content-Type:application/json&lt;/CODE&gt; instead of &lt;CODE&gt;Content-Type: application/json+nxrequest&lt;/CODE&gt; for your PUT request.&lt;/P&gt;</description>
    <pubDate>Sat, 29 Mar 2014 00:13:02 GMT</pubDate>
    <dc:creator>Vincent_Dutat</dc:creator>
    <dc:date>2014-03-29T00:13:02Z</dc:date>
    <item>
      <title>No effect after a document update with API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/no-effect-after-a-document-update-with-api-rest/m-p/326479#M13480</link>
      <description>&lt;P&gt;Bonjour&lt;/P&gt;
&lt;P&gt;Je crée un document avec succès, selon la commande suivante&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;curl -X POST -H "Content-Type: application/json" -u "Administrator:Administrator" -d "{ \"entity-type\": \"document\", \"name\":\"MyDoc\", \"type\": \"SimpleDocument\", \"properties\": { \"dc:title\": \"MyDoc\", \"dc:description\": \"Created via a so cool and simple REST API\"}}" "http://localhost:8080/nuxeo/api/v1/path/IN2P3"

{"entity-type":"document","repository":"default","uid":"8283131e-d835-4648-9bac-6a662af950f5","path":"/IN2P3/MyDoc","type":"SimpleDocument","state":"project","versionLabel":"0.0","isCheckedOut":true,"title":"MyDoc","lastModified":"2014-03-28T20:54:35.64Z","facets":["Commentable","Versionable","Snapshotable","Publishable","HasRelatedText"],"changeToken":"1396040075645","contextParameters":{}}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;alors je récupère l'UID du document créé et j'essaie de modifier le document selon la commande suivante:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;set id="8283131e-d835-4648-9bac-6a662af950f5"

curl -X PUT -H "Content-Type: application/json+nxrequest" -H "X-NXDocumentProperties: *" -u "Administrator:Administrator" -d "{\"entity-type\": \"document\", \"repository\": \"default\", \"uid\":\"%id%\", \"properties\" : { \"dc:title\": \"toto\", \"dc:description\": \"Updated via a so cool and simple REST API\"}}" &lt;A href="http://localhost:8080/nuxeo/api/v1/id/%id%" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/id/%id%&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Ce que je constate: la version du document est incrémentée mais &lt;STRONG&gt;ni le titre ni la description&lt;/STRONG&gt; ne sont modifiés.&lt;/P&gt;
&lt;P&gt;Voici la relecture des propriétés du document:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;curl -X GET -H "Content-Type: application/json+nxrequest" -H "X-NXDocumentProperties: *" -u "Administrator:Administrator" &lt;A href="http://localhost:8080/nuxeo/api/v1/id/&amp;quot;8283131e-d835-4648-9bac-6a662af950f5&amp;quot;" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/id/"8283131e-d835-4648-9bac-6a662af950f5"&lt;/A&gt;;

{"entity-type":"document","repository":"default","uid":"8283131e-d835-4648-9bac-6a662af950f5","path":"/IN2P3/MyDoc","type":"SimpleDocument","state":"project","versionLabel":"0.2","isCheckedOut":false,"title":"MyDoc","lastModified":"2014-03-28T20:57:52.00Z","properties":{"uid:uid":null,"uid:minor_version":"2","uid:major_version":"0","dc:creator":"Administrator","dc:source":null,"dc:nature":null,"dc:contributors":["Administrator"],"dc:created":"2014-03-28T20:54:35.00Z","dc:description":"Created via a so cool and simple REST API","dc:rights":null,"dc:subjects":[],"dc:publisher":null,"dc:valid":null,"dc:format":null,"dc:issued":null,"dc:modified":"2014-03-28T20:57:52.00Z","dc:expired":null,"dc:coverage":null,"dc:language":null,"dc:title":"MyDoc","dc:lastContributor":"Administrator","files:files":[],"common:icon":"/img/page_white_text.png","common:icon-expanded":null,"common:size":null,"file:content":null,"file:filename":null,"DocumentSchema:EDMS_ID":null,"DocumentSchema:Domaine":null,"DocumentSchema:Atrium_ID":"ATRIUM-9","DocumentSchema:Fonction":null,"relatedtext:relatedtextresources":[]},"facets":["Commentable","Versionable","Snapshotable","Publishable","HasRelatedText"],"changeToken":"1396040272000","contextParameters":{}}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Qui peut m'expliquer l'erreur?&lt;/P&gt;
&lt;P&gt;version du serveur: 5.8.0-HF09&lt;/P&gt;
&lt;P&gt;système: windows 7&lt;/P&gt;
&lt;P&gt;Merci
Christian&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 22:18:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/no-effect-after-a-document-update-with-api-rest/m-p/326479#M13480</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2014-03-28T22:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: No effect after a document update with API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/no-effect-after-a-document-update-with-api-rest/m-p/326480#M13481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;use header &lt;CODE&gt;Content-Type:application/json&lt;/CODE&gt; instead of &lt;CODE&gt;Content-Type: application/json+nxrequest&lt;/CODE&gt; for your PUT request.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Mar 2014 00:13:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/no-effect-after-a-document-update-with-api-rest/m-p/326480#M13481</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2014-03-29T00:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: No effect after a document update with API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/no-effect-after-a-document-update-with-api-rest/m-p/326481#M13482</link>
      <description>&lt;P&gt;Bonjour&lt;/P&gt;
&lt;P&gt;Merci pour ce conseil qui a bien fonctionné!!&lt;/P&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:44:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/no-effect-after-a-document-update-with-api-rest/m-p/326481#M13482</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2014-03-31T08:44:00Z</dc:date>
    </item>
  </channel>
</rss>

