cancel
Showing results for 
Search instead for 
Did you mean: 

Update content of a file using alfresco api

arturkandalyan
Champ in-the-making
Champ in-the-making

I am developing the project for integrate Alfresco.
but, I can't update content of file.
how to use alfresco update api?

example:
http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/3d061c1a-752c-44b7-a21d-1a494ce8459e/content?majorVersion=false&comment=test_commet&name=readme. txt&include=test_include

I received 405 error code.imageI need help with this.

 
1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

The ReST API documentation in Alfresco's API Explorer lists the content update as requiring a PUT - you used a POST, so that is almost guaranteed the source of your error.

View answer in original post

4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator

The ReST API documentation in Alfresco's API Explorer lists the content update as requiring a PUT - you used a POST, so that is almost guaranteed the source of your error.

Thank you so much!

EddieMay
World-Class Innovator
World-Class Innovator

Hi @arturkandalyan,

Thank you for accepting the solution - useful to other users to know.

Best wishes, 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

FrankBBL
Champ in-the-making
Champ in-the-making

Hallo zusammen,

suche support für ein Update von Alfresco Community 3.6 auf Community 3.6.

Ich nutzte Alfresco seit 2011 auf einer Ubuntu-VMware (on premise). Habe keine Lust alle manuell zu übertragen und bin aufgrund der Komplexität des Update-Prozesses mit dem Update der Datenbank nicht vertraut.

Zurzeit läuft Alfresco Community auf CentOS 8 in der Cloud. Daher sind keine Arbeiten vor-Ort erforderlich.

Viele Grüße

Frank