ONLYOFFICE 7.0: online forms, password protection in sheets, collaboration improvements and much more
ONLYOFFICE 7.0 released

How to use forcesave with self params

Hello every guys or onlyOffice engineers, Now my project need use forcesave, which save document to OSS . When I use post request of onlyOffice’s forcesave, I want to put my params in request to save document conveniently.

For example, API docs you can find this in post request :

{
    "c": "forcesave",
    "key": "Khirz6zTPdfd7",
    "userdata": "sample userdata"
}

These params are necessary. But I need more, like :

{
    "c": "forcesave",
    "key": "Khirz6zTPdfd7",
    "userdata": "sample userdata",
    "projectParams":"asdfasdfasdfasdfasdf"
}

“projectParams” is my params in project , i need send them to java server.

please help me !

Hello @wyb656
Please note that there’s no way to add additional parameters in this request. If you need to pass information, please use “userdata”: “sample userdata”

Thank you! I find a solution for this problem.I can use service to push data into “userdata” when user is editing their documents.Thanks agin.

1 Like