轻流OA icon

轻流OA

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

通讯录 - 成员 → 更新成员

AI-generated

Summary

Update a member in the address book by specifying the user's userId and providing a JSON body with updated member details.

Inputs

  • User ID (required) — The userId of the user to update.
  • Body (required) — A JSON object containing member fields to update. Required fields: userId (string), email (string). Optional fields include name (string), areaCode (string; must be provided if updating mobileNum), mobileNum (string), headImg (string), department (array), role (array), customRole (array), customDepartment (array), beingDisabled (boolean), and superiorId (string; omitting this does not update, but providing an empty string clears the superiorId).
  • Options — Additional options such as batching parameters (items per batch, batch interval in milliseconds) to enable concurrent requests, and a timeout in milliseconds for waiting on server response headers.

Output shape

a single list of updated member records matching the input items, or error objects if requests fail and continueOnFail is enabled

Supports optional batching to run updates concurrently with specified batch size and interval. Errors can be handled per item if continueOnFail is enabled; otherwise, the operation stops at first error.

Links

Discussion