API index.php update