部门创建

接口说明: 创建部门信息

请求方式: POST(HTTPS)
请求地址https://api.xinrenxinshi.com/v3/department/create

请求Header:

key value
access_token 获取的access_token的实际值

参数说明:

参数 类型 必传(Y/N) 说明
name String Y 部门名称
code String Y 部门编码
parentId String N 上级部门ID
type Integer N 部门类型,默认0,0-部门,1-事业部,2-事业群,3-组,4-中心,5-子公司
adminId String N 管理员ID
city String N 所属城市
remark String N 备注
timestamp Long Y 请求时间戳(精确到毫秒)
sign String Y 请求参数签名

返回结果:

参数 类型 必传(Y/N) 说明
errcode Integer Y 0成功,其他失败
errmsg String Y 结果描述
id String Y 部门id

响应示例

{
  "errcode": 0,
  "errmsg": "created",
  "id": "3c2142ac6c134bd2a44231a835f39f2f"
}
2020 © 企家有道网络技术(北京)有限公司版权所有@京ICP备15035315号 all right reserved,powered by Gitbookupdate by: 2020-12-16 14:23:56

results matching ""

    No results matching ""