企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

通讯录管理 → [部门管理] 创建部门

AI-generated

Summary

Create a department in the WeCom organization under the specified parent department.

Inputs

  • 部门名称 (name) (required) — Department name, 1–64 UTF-8 characters. Names must be unique among sibling departments and cannot contain the listed prohibited characters.
  • 父部门ID (parentid) (required) — Parent department ID; defaults to 1, the root department. WeCom limits department nesting to 15 levels.
  • 英文名称 (name_en) — Optional English name, 1–64 characters. Requires multi-language support in the WeCom admin console to take effect.
  • 在父部门中的次序值 (order) — Optional ordering value from 0 up to (but not including) 2³². Larger values sort earlier within the parent department.
  • 部门ID (id) — Optional department ID, greater than 1. If omitted, WeCom generates an ID.

Output shape

A single WeCom API response item.

The provided source pack shows only the operation's function signature, not its request or return handling. The response fields therefore cannot be specified from the available source.

Links

Discussion