修改文件名
<p><strong>简要描述:</strong> </p>
<ul>
<li>修改文件名接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://ip:port/service/rest/v1/file/rename</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>PUT</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">items</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">List<RenameFileItem></td>
<td>重命名文件列表</td>
</tr>
<tr>
<td style="text-align: left;">accountUid</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">String</td>
<td>操作人accountUid</td>
</tr>
<tr>
<td style="text-align: left;">source</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>数据来源,例如:"esign"</td>
</tr>
</tbody>
</table>
<p>RenameFileItem</p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userFileId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>文件Id</td>
</tr>
<tr>
<td style="text-align: left;">filename</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>新的文件名,长度限制1-255</td>
</tr>
</tbody>
</table>
<p><strong>请求示例</strong></p>
<pre><code> http://ip:port/service/rest/v1/file/rename
{
&quot;items&quot;:[{
&quot;userFileId&quot;:&quot;xxxx&quot;,
&quot;filename&quot;:&quot;新文件名&quot;,
&quot;source&quot;:&quot;esign&quot;
}],
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;success&quot;: true,
&quot;msg&quot;: &quot;成功&quot;,
&quot;total&quot;: null,
&quot;errCode&quot;: 0,
&quot;errShow&quot;: false,
&quot;data&quot;: {}
}</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>