Wechat Work Node icon

Wechat Work Node

Wechat Work Node

部门管理 → 更新部门

AI-generated

Summary

Update an existing department's information by specifying its ID and optionally modifying its name, English name, parent department ID, and order value.

Inputs

  • 部门ID (required) — The unique ID of the department to update.
  • 部门名称 — The new name of the department. Length must be 1-64 UTF-8 characters without the characters :*?"<>|.
  • 英文名称 — The new English name of the department (effective only if multi-language support is enabled). Length must be 1-64 characters without the characters :*?"<>|.
  • 父部门ID — The ID of the parent department.
  • 次序值 — The order value of the department within its parent department. Larger numbers have higher priority. Valid range is [0, 2^32).

Output shape

a JSON object representing the API response from updating the department.

The response object corresponds to the WeChat Work API response format. Errors throw a node operation error with details.

Examples

Example 1: Update the name and order of a department by its ID.

Provide the department ID, new name, and order value.

Links

Discussion