更新权限组API
<h1>开发者</h1>
<ul>
<li>罗恒山</li>
</ul>
<h1>说明</h1>
<ul>
<li>新增子账号权限组</li>
</ul>
<h1>请求</h1>
<ul>
<li>Endpoint: <code>/api/library/role/{roleId}/update</code></li>
<li>Method:POST</li>
</ul>
<h1>请求参数</h1>
<h2>POST 参数</h2>
<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;">alias</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>名称</td>
</tr>
<tr>
<td style="text-align: left;">permissions</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">array</td>
<td>权限标签(至少传一个)</td>
</tr>
</tbody>
</table>
<pre><code>{
&quot;alias&quot;: &quot;默认权限组&quot;,
&quot;permissions&quot;: [&quot;goods.marc_upload&quot;, &quot;goods.marc_upload_log&quot;, &quot;order.list&quot;, &quot;order.marc_download&quot;]
}</code></pre>
<h1>返回示例</h1>
<pre><code>{
&quot;status_code&quot;: 200,
&quot;message&quot;: &quot;&quot;,
&quot;data&quot;: {
&quot;id&quot;: 8,
&quot;alias&quot;: &quot;默认权限组&quot;
}
}</code></pre>
<h1>返回参数说明</h1>
<table>
<thead>
<tr>
<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;">int</td>
<td>ID</td>
</tr>
<tr>
<td style="text-align: left;">alias</td>
<td style="text-align: left;">string</td>
<td>名称</td>
</tr>
</tbody>
</table>
<h1>备注</h1>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>