3.3.5.1.19 RenameFile

Renames a file.<80>

HTTP Verb: POST

URI: HTTP://server/<...>/wopi*/files/<id>?access_token=<token>

The request message for this operation contains the following HTTP headers.

Request header

Usage

Value

X-WOPI-Override

A string specifying the requested operation from the WOPI server. Required.

The string "RENAME_FILE".

X-WOPI-Lock

A string provided by the WOPI client that the WOPI server uses to identify the lock on the file. Required.

The string provided by the WOPI client through Lock (see section 3.3.5.1.14).

X-WOPI-RequestedName

A UTF-7 string that is a full file name. Required.

A string.

The response message for this operation can contain the following HTTP headers.

Response header

Usage

Value

X-WOPI-InvalidFileNameError

A string indicating why the operation failed. There is no standard for how this string is to be formatted. This string MUST NOT be used for anything other than logging. This header SHOULD only be included when responding with the 400 status code.

A string.

The response message for this operation can result in the following status codes.

Status code

Description

200

Success

401

Token is invalid

400

Specified name is illegal

403

User unauthorized

404

File unknown

500

Server error

501

Unsupported file type