轻流OA icon

轻流OA

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

通讯录 - 角色 → 创建角色

AI-generated

Summary

Create a new role in the Qingflow OA address book by specifying the role's name and optionally its ID in JSON format.

Inputs

  • Body (required) — A JSON object containing the role details. Must include 'roleName' (string) and can include 'roleId' (integer or null).
  • Options — Optional configuration including batching options (items per batch and batch interval in milliseconds) and a timeout for waiting for the server response header.

Output shape

a list of JSON objects representing the created role or error details for each input item

Supports both serial and concurrent execution controlled by batching options. If batching is enabled, multiple create requests are sent concurrently with configurable batch size and interval. Errors can be returned in the output if 'Continue On Fail' is enabled.

Links

Discussion