浦开集团


用户所属部门关系接口

[TOC]

简要描述
  • 同步用户所属部门关系接口
请求URL
  • http://ipaas.tj-test.mycyjg.com/apigate/syncUserBelongDept
请求方式
  • POST
请求参数
参数名 位置 必选 类型 说明
Authorization header string 明源鉴权接口返回的access_token
userId body string 用户id
deptId body string 部门id
deptType body string 是否主部门
请求示例
{
"userId":8,//用户唯一 ID
"userCode":"wux",//用户 code, 即用户名
"userDepts":[
        {
            "deptId":1,//部门 id
            "deptCode":"A0001",//部门 code
            "userSort":4,//用户在此部门中的排序
            "deptType":1//是否主部门
        }
    ]
}
返回参数说明
参数名 类型 说明
Data string
Code string 状态码 成功200
Message string 成功OK,失败返回失败原因
Exception string 成功为空,异常返回异常信息
返回示例
{
    "Data": {},
    "Success": true,
    "Message": "OK",
    "Exception": "",
    "Code": "200"
}
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML