'Rename remote document
:param doctype: DocType of the document to be renamed
:param old_name: Current `name` of the document to be renamed
:param new_name: New `name` to be set'

def rename_doc(self, doctype, old_name, new_name):

    params = {'cmd': 'frappe.client.rename_doc', 'doctype': doctype, 'old_name': old_name, 'new_name': new_name}
    return self.post_request(params)
