cancel
Showing results for 
Search instead for 
Did you mean: 

update document name with REST API

yosrioh
Confirmed Champ
Confirmed Champ

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());
           httppost.setEntity(e);
           HttpResponse response = httpclient.execute(httppost);

1 ACCEPTED ANSWER

alxgomz
Employee
Employee
10 REPLIES 10

thank you very much much  it worked at last  Smiley Happy Smiley Happy Smiley Happy