POSThttps://api.account.tencentid.com/openapi/v3/contacts/departments名称 | 类型 | 必填 | 描述 |
Authorization | string | 是 | 值格式: Bearer {{access_token}} 支持鉴权类型: |
Content-Type | string | 是 | 固定值: application/json; charset=utf-8 |
参数名称 | 类型 | 必选 | 描述 |
department_name | string | 是 | 部门名称 示例值:"AI 文档验证部门" |
parent_id | string | 是 | 父部门 ID 示例值:"13580************31" |
alias_id | string | 否 | 部门别名 ID |
managers | array<string> | 否 | 部门负责人 union_id 列表 |
order | int | 否 | 排序值 |
参数名称 | 类型 | 描述 |
department_id | string | 新创建的部门 ID |
trace_id | string | 唯一请求 ID |
POST https://api.account.tencentid.com/openapi/v3/contacts/departmentsAuthorization: Bearer {access_token}Content-Type: application/json; charset=utf-8{ "department_name": "AI文档验证部门", "parent_id": "13580************31" }
{"code": 0,"msg": "ok","trace_id": "fa7f46b61a880971ea3bcf030de5ebe7","data": { "department_id": "13580************31" }}
错误码 | 描述 |
201002 | 部门【%s】已经存在 |
201003 | 部门 ID 已存在 |
201006 | 部门嵌套层级太深 |
201010 | 父部门【%s】已删除 |
201009 | 部门负责人【%s】不存在 |
201023 | 已超出系统部门层级数量上限 |
201024 | 已超出系统部门数量上限 |
201025 | 父部门不能是当前部门 |
文档反馈