问卷星开放文档

问卷星开放文档


2.4.2 修改子账户[1003002]

<p>[TOC]</p> <h1>接口地址</h1> <p>生产环境:<code>https://www.wjx.cn/openapi/subuser.aspx</code></p> <ul> <li> <h1>2.4.2.1 请求参数格式</h1> </li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数</th> <th style="text-align: left;">参数名</th> <th>类型</th> <th>必需</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">subuser</td> <td style="text-align: left;">子账户用户名</td> <td>string</td> <td>是</td> <td>1、必须为系统已经添加的子账户&lt;br&gt;2、修改参数均不存在或为空的情况下,返回失败</td> </tr> <tr> <td style="text-align: left;">role</td> <td style="text-align: left;">角色</td> <td>int</td> <td>否</td> <td>子账户角色:&lt;br&gt;1、可选字段,默认为:1-系统管理员&lt;br&gt;2、角色列表:&lt;br&gt;<strong>·</strong> 1:系统管理员&lt;br&gt;<strong>·</strong> 2:问卷管理员(默认角色)&lt;br&gt;<strong>·</strong> 3:统计结果查看员&lt;br&gt;<strong>·</strong> 4:完整结果查看员</td> </tr> <tr> <td style="text-align: left;">mobile</td> <td style="text-align: left;">手机号码</td> <td>string</td> <td>否</td> <td>子账户手机号码:&lt;br&gt;1、可选字段,留空时子账户的手机号码为空;&lt;br&gt;2、必须符合中国大陆手机号码格式(以1开头的11位数字)&lt;br&gt;3、此接口不进行手机号码的有效性验证</td> </tr> <tr> <td style="text-align: left;">email</td> <td style="text-align: left;">邮箱</td> <td>string</td> <td>否</td> <td>子账户邮箱:&lt;br&gt;1、可选字段,留空时子账户的邮箱为空;&lt;br&gt;2、必须符合基本邮箱格式;</td> </tr> </tbody> </table> <ul> <li> <p>示例请求参数:</p> <pre><code class="language-csharp">Content-Type:application/json {     &amp;quot;action&amp;quot;: &amp;quot;1003002&amp;quot;,     &amp;quot;appid&amp;quot;: &amp;quot;907&amp;quot;,     &amp;quot;sign&amp;quot;: &amp;quot;2bca944acdfaba29fb56844487e9d54a45c3ac87&amp;quot;,     &amp;quot;ts&amp;quot;: &amp;quot;1593340621&amp;quot;,     &amp;quot;subuser&amp;quot;: &amp;quot;xia2&amp;quot;,     &amp;quot;email&amp;quot;: &amp;quot;xia2@wjx.cn&amp;quot;,     &amp;quot;mobile&amp;quot;: &amp;quot;15688888881&amp;quot;,     &amp;quot;role&amp;quot;: &amp;quot;3&amp;quot; }</code></pre> </li> <li> <h1>2.4.2.2 响应参数列表</h1> </li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数</th> <th style="text-align: left;">参数名</th> <th>类型</th> <th>必需</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"></td> <td style="text-align: left;"></td> <td></td> <td></td> </tr> </tbody> </table> <p>示例响应参数1:</p> <pre><code class="language-csharp">{ &amp;quot;result&amp;quot;: true }</code></pre> <p>示例响应参数2:</p> <pre><code class="language-csharp">{ &amp;quot;result&amp;quot;: false, &amp;quot;errormsg&amp;quot;: &amp;quot;用户不存在&amp;quot; }</code></pre>

页面列表

ITEM_HTML