'Update a remote document
:param doc: dict or Document object to be updated remotely. `name` is mandatory for this'

def update(self, doc):

    url = ((((self.url + '/api/resource/') + doc.get('doctype')) + '/') + doc.get('name'))
    res = self.session.put(url, data={'data': frappe.as_json(doc)}, verify=self.verify)
    return self.post_process(res)
