<?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: update document name with REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33690#M14252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i checked the tomcat log like you suggested and i found the url sent to server &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;192.168.10.87 - - [17/Aug/2017:12:47:18 +0100] "POST /alfresco/service/api/login HTTP/1.1" 200 90&lt;BR /&gt;192.168.10.87 - - [17/Aug/2017:12:47:18 +0100] "POST /alfresco/service/api/metadata/node/workspace/SpaceStore/nodeRef=workspace://SpacesStore/a2ad1215-da21-40e0-baf2-39532170d846?alf_ticket=TICKET_360e0e0f5beaaa036009c534d578ce46a70f0bfe HTTP/1.1" 404 437&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i cheked also the node and it exists &lt;/P&gt;&lt;P&gt;is there something wrong with the url ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2017 11:49:56 GMT</pubDate>
    <dc:creator>yosrioh</dc:creator>
    <dc:date>2017-08-17T11:49:56Z</dc:date>
    <item>
      <title>update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33684#M14246</link>
      <description>i am trying to update the name of a document in alfresco using the webscript &lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;OST&amp;nbsp;&amp;nbsp;&amp;nbsp; /alfresco/service/api/node/content/workspace/SpacesStore/i am getting a 405 responce from the server .is this the right webscript to update a node properties ?this is the code i am using to send the request&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Fri, 04 Aug 2017 09:42:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33684#M14246</guid>
      <dc:creator>yosrioh</dc:creator>
      <dc:date>2017-08-04T09:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33685#M14247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yosrioh_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot update properties this way. You can use instead&lt;/P&gt;&lt;P&gt;POST /alfresco/s/api/metadata/node/{store_type}/{store_id}/{id}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using a recent Alfresco version (5.2.something) you can then use the newer v1 API:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode" title="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services REST API Explorer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can write a tiny webscript using java or javascript API to match exactly your needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 10:54:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33685#M14247</guid>
      <dc:creator>alxgomz</dc:creator>
      <dc:date>2017-08-04T10:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33686#M14248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;/P&gt;&lt;P&gt;thx for your answer i tried POST /alfresco/s/api/metadata/node/{store_type}/{store_id}/{id} and i got a 200 responce from server but the document title isn't changing&lt;/P&gt;&lt;P&gt;is there a problem with the Json object im sending ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JSONObject json = new JSONObject();&lt;/P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; json.put("ContentType", "application/json");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; json.put("fileName", "yosri");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpEntity e = new StringEntity(json.toString());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; httppost.setEntity(e);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpResponse response = httpclient.execute(httppost);&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 11:43:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33686#M14248</guid>
      <dc:creator>yosrioh</dc:creator>
      <dc:date>2017-08-04T11:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33687#M14249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you need a json object as expected by the webscript. It must contains a "properties" element and appropriate properties set in it.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;{&lt;BR /&gt;&amp;nbsp; "properties": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "cm:description": "Some desc"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 12:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33687#M14249</guid>
      <dc:creator>alxgomz</dc:creator>
      <dc:date>2017-08-04T12:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33688#M14250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;/P&gt;&lt;P&gt;thx for your answer i tried to put a json format like you suggested but i got a 404 not a valid node&lt;/P&gt;&lt;P&gt;i am using this exemple i found&lt;/P&gt;&lt;P&gt;what im i doing wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Abdera abdera = new Abdera();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AbderaClient client = new AbderaClient(abdera);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String uri = "http://192.168.100.231:8080/alfresco/service/api/metadata/node/workspace/SpaceStore/"+nodeRef+"?alf_ticket="+ticket;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uri = uri.replaceAll("\"", "");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String jsonMessage ="{\"properties\":{\"cm:title\":\"Texas\",\"cm:description\":\"Descripcion de Texas\"}}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InputStream is =new ByteArrayInputStream(jsonMessage.getBytes(StandardCharsets.UTF_8));&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RequestOptions options = new RequestOptions();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options.setHeader("Content-Type", "application/json");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClientResponse c= client.post(uri, is, options);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println( c.getStatus());&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 10:39:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33688#M14250</guid>
      <dc:creator>yosrioh</dc:creator>
      <dc:date>2017-08-07T10:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33689#M14251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error message says it all...&lt;/P&gt;&lt;P&gt;You're trying to work on&amp;nbsp;a node that doesn't exist. Check that "nodeRef" returns a *valid* node reference.&lt;/P&gt;&lt;P&gt;you can also use your tomcat access log to see the full URL accessed by your code, and check the nodeRef actually exists in the node browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:32:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33689#M14251</guid>
      <dc:creator>alxgomz</dc:creator>
      <dc:date>2017-08-08T08:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33690#M14252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i checked the tomcat log like you suggested and i found the url sent to server &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;192.168.10.87 - - [17/Aug/2017:12:47:18 +0100] "POST /alfresco/service/api/login HTTP/1.1" 200 90&lt;BR /&gt;192.168.10.87 - - [17/Aug/2017:12:47:18 +0100] "POST /alfresco/service/api/metadata/node/workspace/SpaceStore/nodeRef=workspace://SpacesStore/a2ad1215-da21-40e0-baf2-39532170d846?alf_ticket=TICKET_360e0e0f5beaaa036009c534d578ce46a70f0bfe HTTP/1.1" 404 437&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i cheked also the node and it exists &lt;/P&gt;&lt;P&gt;is there something wrong with the url ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 11:49:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33690#M14252</guid>
      <dc:creator>yosrioh</dc:creator>
      <dc:date>2017-08-17T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33691#M14253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes there is. You're using "nodeRef=fullyQualifiedNodeRef" as the last component of the the URL.&lt;/P&gt;&lt;P&gt;Use only the UUID part of the nodeRef.&lt;/P&gt;&lt;P&gt;So URL should be:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;/alfresco/service/api/metadata/node/workspace/SpacesStore/a2ad1215-da21-40e0-baf2-39532170d846?alf_ticket=TICKET_360e0e0f5beaaa036009c534d578ce46a70f0bfe &lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:06:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33691#M14253</guid>
      <dc:creator>alxgomz</dc:creator>
      <dc:date>2017-08-17T12:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33692#M14254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have changed the url but i get the same responce&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;192.168.10.87 - - [17/Aug/2017:13:15:14 +0100] "POST /alfresco/service/api/metadata/node/workspace/SpaceStore/a2ad1215-da21-40e0-baf2-39532170d846?alf_ticket=TICKET_360e0e0f5beaaa036009c534d578ce46a70f0bfe HTTP/1.1" 404 402&lt;/BLOCKQUOTE&gt;&lt;P&gt;and this is the url of the node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://192.168.100.231:8080/share/page/document-details?nodeRef=workspace://SpacesStore/a2ad1215-da21-40e0-baf2-39532170d846" title="http://192.168.100.231:8080/share/page/document-details?nodeRef=workspace://SpacesStore/a2ad1215-da21-40e0-baf2-39532170d846" rel="nofollow noopener noreferrer"&gt;http://192.168.100.231:8080/share/page/document-details?nodeRef=workspace://SpacesStore/a2ad1215-da21-40e0-baf2-39532170…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:17:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33692#M14254</guid>
      <dc:creator>yosrioh</dc:creator>
      <dc:date>2017-08-17T12:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33693#M14255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Space&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/SPAN&gt;Store&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:19:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33693#M14255</guid>
      <dc:creator>alxgomz</dc:creator>
      <dc:date>2017-08-17T12:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: update document name with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33694#M14256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much much&amp;nbsp; it worked at last&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:24:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-document-name-with-rest-api/m-p/33694#M14256</guid>
      <dc:creator>yosrioh</dc:creator>
      <dc:date>2017-08-17T12:24:44Z</dc:date>
    </item>
  </channel>
</rss>

