From a2a993d71393347ff8dddf8752784a7b42726562 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Mon, 16 Dec 2024 19:13:14 -0600 Subject: [PATCH] Add default argument for api_patch --- src/launchpad.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/launchpad.h b/src/launchpad.h index 75c0cb5..8791b6c 100644 --- a/src/launchpad.h +++ b/src/launchpad.h @@ -74,7 +74,7 @@ public: const std::map& params = {}, bool build_endpoint = true, const std::string& token_secret_override = ""); - std::optional api_patch(const std::string& endpoint = "", const nlohmann::json& data); + std::optional api_patch(const std::string& endpoint = "", const nlohmann::json& data = nlohmann::json{}); std::optional api_delete(const std::string& endpoint = ""); std::string build_full_url(const std::string& endpoint) const;