Actions77
- Employee Actions
- Attendance Actions
- Employee Checkin Actions
- Expense Claim Actions
- Holiday List Actions
- Leave Allocation Actions
- Leave Application Actions
- Salary Slip Actions
- Shift Assignment Actions
- Custom DocType Actions
- Frappe Method Actions
Employee → Update
AI-generatedSummary
Update an existing Employee document in ERPNext HRMS by specifying its document name and the updated data in JSON format, selecting the appropriate Frappe REST API version (v1 or v2).
Inputs
- API Version — Choose which Frappe REST API version to use for the update request: v1 (stable) or v2 (Frappe v16). Defaults to v1.
- Document Name (required) — The unique identifier (document name) of the Employee document to update.
- Data JSON (required) — The updated fields and values as a JSON object to apply to the Employee document.
Output shape
a single updated document record as a JSON object
Returns the updated Employee document data as received from the ERPNext API. No pagination or batch update; operates on one document per execution item.
Examples
Example 1: Update an employee's department
Set API Version to v1 or v2, Document Name to the employee's document ID, and Data JSON to {"department": "New Department"}.