ERPNext HRMS icon

ERPNext HRMS

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

Holiday List → Cancel

AI-generated

Summary

Cancel a submitted Holiday List document in ERPNext HRMS using the specified Frappe REST API version.

Inputs

  • API Version — Select the Frappe REST API version to use ('v1' or 'v2'). Defaults to 'v1'.
  • Document Name (required) — The unique name or ID of the Holiday List document to cancel.

Output shape

a single JSON object containing the result message or confirmation of the cancel action

Returns the response message from the ERPNext server after successfully canceling the specified Holiday List document. Throws an error if the cancellation fails. No pagination or multiple documents supported.

Examples

Example 1: Cancel a submitted Holiday List document named 'HL-2023-12-25'.

Set Resource to 'Holiday List', Operation to 'Cancel', specify 'HL-2023-12-25' as Document Name, select API Version as needed (default 'v1').

Links

Discussion