I have created a custom REST API in my SugarCRM 6.5 application. As per the guide, I have the set_document_revision($session, $document_revision){} function in
set_document_revision($session, $document_revision){}