```php
<?php

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

$data=Request::post();

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

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

$crud=new CrudService($conn);

$city_id=$crud->create('cities',[
'state_id'=>$data['state_id'],
'name'=>Helper::sanitize($data['name']),
'status'=>$data['status'] ?? 1
]);

Response::success([
"city_id"=>$city_id
],"City created");