diff --git a/fedn/network/api/client.py b/fedn/network/api/client.py index 344ae645..a92a3a86 100644 --- a/fedn/network/api/client.py +++ b/fedn/network/api/client.py @@ -430,7 +430,7 @@ def download_package(self, path: str): else: return {"success": False, "message": "Failed to download package."} - def set_active_package(self, path: str, helper: str, name: str = None, description: str = None): + def set_active_package(self, path: str, helper: str, name: str = "", description: str = ""): """Set the compute package in the statestore. :param path: The file path of the compute package to set. @@ -442,7 +442,7 @@ def set_active_package(self, path: str, helper: str, name: str = None, descripti """ with open(path, "rb") as file: response = requests.post( - self._get_url("set_package"), + self._get_url_api_v1("packages"), files={"file": file}, data={"helper": helper, "name": name, "description": description}, verify=self.verify,