diff --git a/monkey/monkey_island/cc/resources/agent_configuration.py b/monkey/monkey_island/cc/resources/agent_configuration.py index 0f9279bba..47be16abc 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): @jwt_required def post(self): try: - configuration_object = AgentConfigurationObject.from_json(request.data) + configuration_object = AgentConfigurationObject.from_mapping(request.json) self._agent_configuration_repository.store_configuration(configuration_object) return make_response({}, 200) except (InvalidConfigurationError, json.JSONDecodeError) as err: