I am working with rest API using python and in that I am succeeded with get, post, put, delete operations for Master data like item, supplier, customer. But don’t know how to rename, cancel and submit the existing document. Please anyone help me on this.
You can create a document by sending a PUT request to the endpoint, /api/resource/{doctype}/{name} . This acts like a PATCH HTTP request in which you do not have to send the whole document but only the parts you want to change.
First I wish to say thanks for your response. I saw your link and read the documentation, In that you have mentioned the code for update the specific document using put method, which I have already tried and got success.
But here i am seeking help for renaming, cancelling and amending the document. Kindly do the needful.
Thanks for your response, I have tried using online editor to import frappe, but got a error and also I have doubt in when to call this rename function, whether after rest API or before API. Could you please help via screen sharing.
Kindly do the needful.
@youssef@IT_Department I send a PUT request to /api/resource/Attendance/{name} with data = {“docstatus”: 2} but getting Internal Server Error. Can anyone help me out in this. I wanted to make a change in my submitted document but can’t cancel it using the restAPI and also there is no info about the same on ERPNext doc. I am using authorizing using token and passing data in data and in json both and getting INTERNAL SERVER ERROR in both the cases.