From cb622469488c5438c4e51e653ba6c2257eae3911 Mon Sep 17 00:00:00 2001 From: nandu pokhrel Date: Sat, 16 Jul 2022 22:16:12 -0400 Subject: [PATCH] Island: Change POST to PUT in AgentConfiguration resource --- monkey/monkey_island/cc/resources/agent_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/resources/agent_configuration.py b/monkey/monkey_island/cc/resources/agent_configuration.py index e0c2fa942..6db3f8b63 100644 --- a/monkey/monkey_island/cc/resources/agent_configuration.py +++ b/monkey/monkey_island/cc/resources/agent_configuration.py @@ -24,7 +24,7 @@ class AgentConfiguration(AbstractResource): return make_response(configuration_json, 200) @jwt_required - def post(self): + def put(self): try: configuration_object = AgentConfigurationObject.from_mapping(request.json) self._agent_configuration_repository.store_configuration(configuration_object)