Update unit-api.php