ERPNext HRMS icon

ERPNext HRMS

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

Shift Assignment → Cancel

AI-generated

Summary

Cancel a submitted Shift Assignment document in ERPNext HRMS by specifying its document name and the API version to use.

Inputs

  • API Version (required) — Choose between the stable v1 (/api/resource) or the v2 (/api/v2/document for Frappe v16) REST API endpoints for the request.
  • Document Name (required) — The unique name (ID) of the Shift Assignment document to cancel.

Output shape

a JSON object containing the cancellation result message or confirmation

Returns the server response message indicating the cancellation status. Handles one document per execution item. Errors produce a message object if 'Continue On Fail' is enabled.

Links

Discussion