Often in the community, this is recommended for cancelling/submitting:
PUT /api/resource/doctype/name
{"docstatus": 2}
If you read document.py this isn't really equivalent to cancelling the document. IMO the current best method is to supply run_method (both submit/cancel are whitelisted).
I am not fully sure about this, maybe this would be better?
Often in the community, this is recommended for cancelling/submitting:
If you read
document.py
this isn't really equivalent to cancelling the document. IMO the current best method is to supplyrun_method
(both submit/cancel are whitelisted).I am not fully sure about this, maybe this would be better?