AnsweredAssumed Answered

update document name with REST API

Question asked by yosrioh on Aug 4, 2017
Latest reply on Aug 17, 2017 by yosrioh

i am trying to update the name of a document in alfresco using the webscript :

POST    /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


           HttpPost httppost = new HttpPost(urlString);
           JSONObject json = new JSONObject();
           json.put("ContentType", "application/json");
           json.put("name", "yosri");
           HttpEntity e = new StringEntity(json.toString());
           HttpResponse response = httpclient.execute(httppost);