Actions12
人事接口 → 新增员工(支持批量附件)
AI-generatedSummary
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, andavatarUrlare documented by Moka People. The node wraps the array in adataproperty before sending it. - options.timeout — Request timeout in milliseconds.
0means 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
errorfield; otherwise, execution fails.