设置应用分组
<p><strong>简要描述:</strong> </p>
<ul>
<li>设置应用分组,给已有应用设置分组(注意:只能设置组织级别分组)</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>{Host}/v1/open/App/AddToGroup</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST (application/json) </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;">appid</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>应用id</td>
</tr>
<tr>
<td style="text-align: left;">groupIds</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string[]</td>
<td>应用分组id集合,支持增量传入</td>
</tr>
</tbody>
</table>
<p><strong>提交数据示例</strong></p>
<pre><code>{
&quot;groupIds&quot;: [
&quot;string&quot;
],
&quot;projectId&quot;: &quot;string&quot;,
&quot;appId&quot;: &quot;string&quot;,
&quot;timestamp&quot;: 0,
&quot;appKey&quot;: &quot;string&quot;,
&quot;sign&quot;: &quot;string&quot;
}</code></pre>
<p><strong>返回数据说明</strong></p>
<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;">success</td>
<td style="text-align: left;">bool</td>
<td>操作是否成功</td>
</tr>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">int</td>
<td>错误代码,1代表成功</td>
</tr>
<tr>
<td style="text-align: left;">error_msg</td>
<td style="text-align: left;">string</td>
<td>错误消息</td>
</tr>
</tbody>
</table>
<p><strong>成功</strong></p>
<pre><code>{
&quot;data&quot;: &quot;string&quot;,
&quot;error_code&quot;:1,
&quot;success&quot;: true
}</code></pre>
<p><strong>失败</strong></p>
<pre><code>{
&quot;error_msg&quot;: &quot;错误描述&quot;,
&quot;error_code&quot;: 10101, //状态码 非1为失败,
&quot;success&quot;: false
}</code></pre>