Moka People icon

Moka People

Moka People (HCM 人事系统) API 集成

人事接口 → 新增员工(支持批量附件)

AI-generated

Summary

Adds one or more employees to Moka People using the configured “新增员工接口(支持批量附件)” API. Enter the interface code and a JSON array of employee objects; the node wraps the array as { "data": [...] } for the request.

Inputs

  • apiCode (required) — The interface code configured in Moka People under Settings → External Interface Settings for the batch-attachment employee creation API.
  • data (required) — A JSON array where each object describes one employee. Employee fields such as realname, employee_no, begin_work_time, id_no, contract, and avatarUrl are documented by Moka People. The node wraps the array in a data property before sending it.
  • options.timeout — Request timeout in milliseconds. 0 means no timeout.

Output shape

A list of response items, associated with their corresponding input items.

The API response data is converted to n8n JSON output. If Continue On Fail is enabled, errors are returned as items with an error field; otherwise, execution fails.

Links

Discussion