PUT new/v1/3rd/file/rename
文件重命名
Request Information
URI Parameters
None.
Body Parameters
包含一个name的字符串属性,值为保存的新文件名
RenameFileRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| name |
新的文件名 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1"
}
application/xml, text/xml
Sample:
<RenameFileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WPSApi.Model"> <name>sample string 1</name> </RenameFileRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
WPSBaseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<WPSBaseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WPSApi.Model"> <code>1</code> <msg>sample string 2</msg> </WPSBaseModel>