```php
<?php

require_once '../../core/api_bootstrap.php';

require_once '../../core/employee_auth.php';
EmployeeAuth::check('verify_kyc');

$data=Request::post();

try {

Validator::required($data,[
'provider_id',
'rejection_reason'
]);

$db=new Database();
$conn=$db->connect();

$conn->prepare("

UPDATE provider_kyc

SET
verification_status='rejected',
rejection_reason=:reason

WHERE provider_id=:provider_id

")->execute([

':provider_id'=>$data['provider_id'],
':reason'=>$data['rejection_reason']

]);

Response::success([],"KYC rejected");

}
catch(Exception $e){

Logger::log("system.log",$e->getMessage());
Response::error("Server error",500);

}