ERPNext HRMS icon

ERPNext HRMS

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

Leave Allocation → Update

AI-generated

Summary

Update an existing Leave Allocation document in the ERPNext HRMS system by specifying its document name and providing the updated data as a JSON object.

Inputs

  • API Version — Select the Frappe REST API version to use (v1 for stable, v2 for Frappe v16).
  • Document Name (required) — Specify the unique identifier of the Leave Allocation document to update.
  • Data JSON (required) — Provide the updated fields and values as a JSON object to apply to the document.

Output shape

a single JSON object containing the updated Leave Allocation document's data

The operation will return the updated document's data as returned by the ERPNext API. If multiple input items are processed, an array of results is returned. Errors will be represented as error messages in the output if continue on fail is enabled.

Links

Discussion