Update class_api.php