code: def post_revert(self, post_id, version_id):
          
          return self._get('posts/{0}/revert.json'.format(post_id),
                           {'version_id': version_id}, 'PUT', auth=True)
docs: Function to reverts a post to a previous version (Requires login).
  
          Parameters:
              post_id (int):
              version_id (int): The post version id to revert to.