POST api/2.0/files/file/{fileId}/startedit This function requires authentication

Description

Informs about opening a file with the ID specified in the request for editing, locking it from being deleted or moved (this method is called by the mobile editors).

Parameters
Name Description Type Example
fileId
sent in url
File ID number 1234
EditingAlone
sent in body
Specifies whether to share a file with other users for editing or not Bool value true
Doc
sent in body
Shared token string some text
Example
POST api/2.0/files/file/1234/startedit
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "EditingAlone": true,
  "Doc": "some text"
}
Returns

File key for Document Service