files.move

API: Experimental/Beta Auth: Users

Move a file from one path to another

Request Response Error
BulkRequest<FilesMoveRequestItem> BulkResponse<LongRunningTask> CommonErrorMessage

The file can be of any type. This request is also used for ‘renames’ of a file. This is simply considered a move within a single directory. This operation handles conflicts depending on the supplied WriteConflictPolicy.

This is a long running task. As a result, this operation might respond with a status code which indicate that it will continue in the background. Progress of this job can be followed using the task API.

Errors:

Status Code Description
HttpStatusCode(value=400, description=Bad Request) The operation couldn't be completed because of the write conflict policy
HttpStatusCode(value=404, description=Not Found) Either the oldPath or newPath exists or you lack permissions
HttpStatusCode(value=403, description=Forbidden) You lack permissions to perform this operation

Examples:

Example
Example of using move to rename a file