Skip to main content
Carry out a lock or file operation for the online editor

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Headers

X-WOPI-Lock
string

A string provided by the WOPI client that the host must use to identify the lock on the file

X-WOPI-Override
string

Which operation the call stands for. LOCK, REFRESH_LOCK, UNLOCK and GET_LOCK manage the editing lock, RENAME_FILE renames the file and the document with it, and PUT_RELATIVE is served for a format conversion only. Anything else is refused as not implemented.

X-WOPI-RequestedName
string

A UTF-7 encoded string that is a file name, not including the file extension. The extension the file already has is kept.

Path Parameters

file_id
string
required

Hash of the file the operation applies to.

Query Parameters

access_token
string

Token the call is authorized with.

Response

The operation was carried out.