轻流OA icon

轻流OA

轻流OA API集成,支持通讯录、任务委托、应用管理、数据操作等功能

通讯录 - 部门 → 创建部门

AI-generated

Summary

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.

Links

Discussion