集团设备-待同步-修改集团设备名称
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>集团设备名称可编辑,编辑保存时对修改的集团设备名称进行校验</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8095/cloud-roomck/groupDevice/updateGroupDeviceName</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>入参</h5>
<pre><code>{
&quot;topCont&quot;: {
&quot;appChl&quot;: &quot;&quot;,
&quot;reqTime&quot;: &quot;2025-03-17 09:48:41&quot;,
&quot;appSecret&quot;: &quot;&quot;,
&quot;version&quot;: &quot;V1.0&quot;,
&quot;svcCode&quot;: &quot;&quot;
},
&quot;svcCont&quot;: {
&quot;groupDeviceName&quot;:&quot;集团设备名称&quot;,
&quot;id&quot;: &quot;11&quot;,
&quot;userId&quot;: 1
}
}</code></pre>
<h5>参数</h5>
<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;">id</td>
<td style="text-align: left;">是|String|当前修改记录的 ID|</td>
</tr>
<tr>
<td style="text-align: left;">userId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>当前用户 ID</td>
</tr>
<tr>
<td style="text-align: left;">groupDeviceName</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>集团设备名称</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<p>1)修改成功</p>
<pre><code>{
&quot;topCont&quot;: {
&quot;resultCode&quot;: &quot;0&quot;,
&quot;respTime&quot;: &quot;2025-03-24 15:31:08&quot;,
&quot;remark&quot;: &quot;success&quot;
},
&quot;svcCont&quot;: null
}</code></pre>
<p>2)设备名称在集团中间库已存在</p>
<pre><code>{
&quot;topCont&quot;: {
&quot;resultCode&quot;: &quot;-1&quot;,
&quot;respTime&quot;: &quot;2025-03-24 15:27:23&quot;,
&quot;remark&quot;: &quot;设备集团中间库已存在!&quot;
},
&quot;svcCont&quot;: null
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>