Requests a message to update a file for the HTTP://server/<...>/wopi*/files/<id>/contents operation.
The request body must contain the full file contents in the binary format.
This operation works as follows:
Name | Description | Type |
file_id | The file ID that must be URL safe. | string |
Name | Description | Type |
access_token | An access token that the host will use to determine whether the request is authorized. | string |
Name | Description | Type | Presence |
X-WOPI-Override | The requested operation from the WOPI server (PUT). | string | required |
X-WOPI-Lock | The lock ID that the host must use to identify the lock on the file. | string | optional |
X-WOPI-Editors | All the users who contributed changes to the document in this PutFile request (UserId values delimited by commas). | string | optional |
X-LOOL-WOPI-IsModifiedByUser | Indicates whether the user has modified the document before the save ("true"), or if they just pressed the Save button without any modification ("false"). | string | optional |
X-LOOL-WOPI-IsAutosave | Indicates whether the PutFile is triggered by autosave ("true") or by explicit user operation (Save button or menu entry) ("false"). | string | optional |
X-LOOL-WOPI-IsExitSave | Indicates whether an automatic save will be triggered when the document gets cleaned up from memory (e.g. when all users disconnect) ("true") or not ("false"). | string | optional |
The request body must be the full binary contents of the file.
Name | Description | Type | Presence |
X-WOPI-Lock | The lock ID identifying the current lock on the file. This header must always be included when responding to the request with 409 Conflict. It should not be included when responding to the request with 200 OK. | string | optional |
X-WOPI-LockFailureReason | The cause of the lock failure. This header may be included when responding to the request with 409 Conflict. It must only be used for logging purposes. | string | optional |
X-WOPI-ItemVersion | The file version. | string | optional |