ERPNext HRMS icon

ERPNext HRMS

Work with ERPNext/Frappe HRMS v15-v16 documents and methods

Frappe Method → Update

AI-generated

Summary

Update a Frappe document by specifying its resource type, document name, and JSON payload containing updated fields, using the selected Frappe REST API version (v1 or v2).

Inputs

  • API Version — Select which Frappe REST API version to use (v1 or v2). Defaults to v1.
  • Document Name (required) — The unique name or ID of the Frappe document to update.
  • Data JSON (required) — A JSON object representing the document fields and values to update.

Output shape

a single JSON object representing the updated document returned from the ERPNext/Frappe API

This operation returns the full updated document data as JSON. It requires the resource to not be 'frappeMethod' since 'Update' operation is not applicable for 'frappeMethod'. Errors are thrown on failure unless the node's Continue On Fail option is enabled, in which case error details are returned for the processing item.

Examples

Example 1: Update an Employee document

Set Resource to 'Employee', specify the Document Name (e.g., 'EMP-0001'), and provide the Data JSON with updated fields such as {"employee_name":"John Doe Updated"}.

Links

Discussion