设置部门成员
接口地址
[接口服务器地址]/api/orgs/{org_id}/depts/{dept_id}/users.html
请求方法
POST
Request URL
名称 | 必选 | 说明 |
---|---|---|
{org_id} | true | 组织ID |
{dept_id} | true | 部门ID -1 表示部门为空,直接存在组织下 |
Request Body
名称 | 必选 | 类型 | 说明 |
---|---|---|---|
user_id | true | string | 用户ID 多个用户以逗号分隔,如100,101 |
move_user_dept | false | string | 移除原部门 1:移除 0:不移除(默认) |
调用样例及调试工具
测试接口返回结果(成功)
{"status":1,"code":"0","msg":"","data":""}