同步组织架构 | |
请求地址: | https://oapi.i8xiaoshi.com/app/personnel/syncOrg |
返回格式: | JSON |
授权模式: | clientcredentials(客户端模式) |
请求方式: | POST |
HTTP Headers | |
Content-Type: | application/json |
Authorization: | 有效访问令牌(access_token) |
提交参数 | |||
参数名 | 类型 | 必须 | 描述 |
---|---|---|---|
orgTree | Object | true | 组织结构树对象(详细结构如下) |
orgTree.code | string | true | 部门编号 |
orgTree.name | string | true | 组织节点名称 |
orgTree.childs | array | false | 部门子节点(orgTree组织结构对象) |
orgTree.status | number | false | 状态(0-正常,1-删除) |
orgTree.order | number | false | 排序号 |
返回结果 |
{"status": "状态码",
"ReturnObject":[true or false],
"Description":"结果描述"} |
备注 |
本接口,只需要提交orgTree一个参数,该参数为一个嵌套型对象,对象属性包括code,name,childs等(详见参数列表) |