diff --git a/src/core_api.cpp b/src/core_api.cpp index 0c9cd0e5..b2b993c8 100644 --- a/src/core_api.cpp +++ b/src/core_api.cpp @@ -2151,7 +2151,10 @@ bool del_analytics_rules(const std::shared_ptr& req, const std::shared return false; } - res->set_200(R"({"ok": true})"); + nlohmann::json res_json; + res_json["name"] = req->params["name"]; + + res->set_200(res_json.dump()); return true; }