ERPNext HRMS icon

ERPNext HRMS

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

Leave Application → Update

AI-generated

Summary

Update an existing Leave Application document in ERPNext HRMS by specifying the document's unique name and providing the JSON payload with the fields to update.

Inputs

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

Output shape

A single JSON object representing the updated Leave Application document.

The returned output includes the updated document data as returned from the ERPNext API. The operation uses 'PUT' for API v1 and 'PATCH' for API v2.

Links

Discussion