嘟哩开放平台
简体中文
繁體中文
English
快速开始 开放接口 嘟哩官网
模板

修改部门


请求说明

POST http://[SERVER:9022]/v1/org/update_dept?access_token={access_token}


请求示例

{
"org_id": "$org_id",
"dept_id": "$dept_id",
"dept_name": "$dept_name",
"sort_id": $sort_id,
"dept_head_list":[$account_id_1,$account_id_2],
}


参数说明

参数

类型

是否必填

说明

org_id

string

Y

组织iD

dept_id

string

Y

部门id,不能修改根部门

dept_name

string

Y

部门名称。不能超过32个字符(包括汉字和英文字母)

sort_id

int

Y


部门排序。在父部门中的排序值。值越小排序越靠前。填0自动生成。同级部门不允许重复(推荐全局唯一)

dept_head_list

string[]

N

部门负责人。支持多个,字符串数组,相同会覆盖旧数据。


返回结果示例

{
"code": 0,
"msg": "ok",
"data": {
"dept_id": "$dept_id"
}
}

结果字段说明

参数

类型

说明

dept_id

string

部门id


状态码

code

message

说明

100080

Invalid dept name

部门名称校验失败

100040

Invalid org id

组织id校验失败

100065

Invalid params

请求参数错误(其他参数)