Update content of a file using alfresco api

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
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

3 Replies
Highlighted
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

Highlighted
Member II

Re: Update content of a file using alfresco api

Jump to solution

Thank you so much!

Highlighted
Community Manager
Community Manager

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!