```php
<?php

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

$data=Request::post();

try {

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

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

$conn->prepare("

UPDATE blog_categories
SET status=0
WHERE id=:id

")->execute([

':id'=>$data['id']

]);

Response::success([],"Blog category deleted");

}
catch(Exception $e){

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

}