diff --git a/envs/monkey_zoo/blackbox/island_client/monkey_island_requests.py b/envs/monkey_zoo/blackbox/island_client/monkey_island_requests.py index 7b91207a2..ebf808a87 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_requests.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_requests.py @@ -88,6 +88,12 @@ class MonkeyIslandRequests(object): self.addr + url, data=data, headers=self.get_jwt_header(), verify=False ) + @_Decorators.refresh_jwt_token + def put_json(self, url, json: Dict): + return requests.put( # noqa: DUO123 + self.addr + url, json=json, headers=self.get_jwt_header(), verify=False + ) + @_Decorators.refresh_jwt_token def post_json(self, url, json: Dict): return requests.post( # noqa: DUO123