Actions54
- 通讯录 - 成员 Actions
- 通讯录 - 部门 Actions
- 通讯录 - 角色 Actions
- 通讯录 - 管理员 Actions
- 通讯录 - 子管理员 Actions
- 轻流应用接口 - 应用管理 Actions
- 数据内容 - 应用数据 Actions
- 数据流程接口 - 流程操作 Actions
- 其他 Actions
- 任务委托 Actions
- 高级设置 Actions
通讯录 - 部门 → 创建部门
AI-generatedSummary
Create a new department in the Qingflow OA address book by sending required and optional department details in JSON format.
Inputs
- Body (required) — A JSON object containing department details with required properties 'deptId' (integer) and 'name' (string), and optional properties 'parentId' (integer), 'deptLeader' (array), and 'ordinal' (integer, range 0 to 2^30).
- Options — Optional settings to control request behavior including batching parameters (items per batch and interval between batches in milliseconds) which enable concurrent requests, and a timeout value in milliseconds to limit how long to wait for a server response before aborting.
Output shape
a single list of items representing the created department(s) response data
Supports batching to handle multiple create requests concurrently if batching options are set; errors can be handled with continue on fail. Returns execution data formatted as JSON arrays for each created department.
Examples
Example 1: Create a single new department with required deptId and name
Set Body with 'deptId' as integer and 'name' as string; leave other Body fields null or empty; no batching options.