DE API Documentation

View on GitHub

Renaming a File or Directory

URL Path: /secured/filesystem/rename

HTTP Method: POST

Error codes: ERR_NOT_A_FOLDER, ERR_DOES_NOT_EXIST, ERR_NOT_WRITEABLE, ERR_EXISTS, ERR_INCOMPLETE_RENAME, ERR_NOT_A_USER, ERR_TOO_MANY_PATHS

The ERR_TOO_MANY_PATHS error code is returned when the items and sub-directories under the “source” folder exceed the maximum number of paths that can be processed by this endpoint.

Request Query Parameters:

Request Body:

{
    "source" : "/tempZone/home/wregglej/test3",
    "dest" : "/tempZone/home/wregglej/test2"
}

Response:

{
    "source":"/tempZone/home/wregglej/test3",
    "dest":"/tempZone/home/wregglej/test2"
}

Curl Command:

curl -H "$AUTH_HEADER" -H "Content-Type:application/json" -d '{"source" : "/tempZone/home/wregglej/test3", "dest" : "/tempZone/home/wregglej/test2"}' http://127.0.0.1:3000/secured/filesystem/rename