upd ticket_api.php