I’m developing a springboot java application. We have a documentserver deployed on a local server. I need to use the following api: Save file edits
PUT {baseUrl}/api/2.0/files/file/:fileId/saveediting
But I don’t understand what exactly to pass in the body File binary
The request file stream.
How should I pass this file?
Hello @DevHornet,
You are looking at the wrong API section (DocSpace). If you are using just the Document Server, you need to follow the documentation here:
When working with ONLYOFFICE editors, files are saved automatically when all users close the editor. If you need to manually save an intermediate version, use forcesave:
Thanks for the reply, but I’m still interested in the format of the file transfer, as I’ll come across this sooner or later. I’ve already tried transferring it as a file, as a byte array, as a file resource, and nothing worked.
The task is to place some content from a pre-generated file in a file that lies on the server. Is there any way to update the content inside the file?
Which product are you using? Is it just Document Server or DocSpace?