From c86b637598777b151bc4591bd5fe491a7f68488b Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 22 Jul 2022 11:47:38 -0400 Subject: [PATCH] Island: Add comment about 204 status code to AgentConfiguration resource --- monkey/monkey_island/cc/resources/agent_configuration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey/monkey_island/cc/resources/agent_configuration.py b/monkey/monkey_island/cc/resources/agent_configuration.py index 47be16abc..36d6ce8e0 100644 --- a/monkey/monkey_island/cc/resources/agent_configuration.py +++ b/monkey/monkey_island/cc/resources/agent_configuration.py @@ -26,6 +26,7 @@ class AgentConfiguration(AbstractResource): try: configuration_object = AgentConfigurationObject.from_mapping(request.json) self._agent_configuration_repository.store_configuration(configuration_object) + # API Spec: Should return 204 (NO CONTENT) return make_response({}, 200) except (InvalidConfigurationError, json.JSONDecodeError) as err: return make_response(