Update content of a file using alfresco api

cancel
Showing results for 
Search instead for 
Did you mean: 
arturkandalyan
Member II

Update content of a file using alfresco api

Jump to solution

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.Screenshot_1.jpgI need help with this.

 
1 Solution

Accepted Solutions
afaust
Master

Re: Update content of a file using alfresco api

Jump to solution

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 solution in original post

4 Replies
afaust
Master

Re: Update content of a file using alfresco api

Jump to solution

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.

arturkandalyan
Member II

Re: Update content of a file using alfresco api

Jump to solution

Thank you so much!

EddieMay
Alfresco Employee

Re: Update content of a file using alfresco api

Jump to solution

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
Member II

Re: Update content of a file using alfresco api

Jump to solution

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