ERPNext HRMS icon

ERPNext HRMS

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

Leave Allocation → Submit

AI-generated

Summary

Submit a Leave Allocation document identified by its document name in ERPNext HRMS using the Frappe REST API.

Inputs

  • API Version — Select the Frappe REST API version to use for the request, either v1 (stable) or v2 (for Frappe v16). Defaults to v1.
  • Document Name (required) — Specify the unique identifier (name) of the Leave Allocation document to submit.

Output shape

A JSON object containing the server response message confirming the submission action or relevant response details.

The operation requires the document to exist and be in a state that can be submitted. Errors will be returned if the document cannot be found or cannot be submitted. The returned data is the response message from the submit action of the Frappe API.

Links

Discussion