Rename File

Rename the file.

Request Format

GET http://{apigw-address}/dfs-api/v1.0/rename

Request Parameters (URI)

Request parameters (URI)

Name

Location (Path/Query)

Required or not

Data type

Description

tenant

Query

True

String

Tenant name

sourcePath

Query

True

String

Source file path

sourceFileName

Query

True

String

Source file name, including its extension

targetFileName

Query

True

String

Target file name, including its extension

loginTenant

Query

True

String

Currently logged-in tenant

Response Parameters

Response parameters

Name

Data type

Description

status

Int

Status code

msg

String

Response message

submsg

String

Response sub-message

data

Null

Response data

Sample

Request Sample

GET http://{apigw-address}/dfs-api/v1.0/download?tenant=EDGE&sourcePath=/path/&sourceFileName=sample.txt&targetFileName=test.txt&loginTenant=EDGE

Return Sample

{
   "status":0,
   "msg":"success",
   "submsg":"",
   "data":null
}