diff --git a/silverback/cluster/client.py b/silverback/cluster/client.py index 59113e4f..9240e140 100644 --- a/silverback/cluster/client.py +++ b/silverback/cluster/client.py @@ -358,7 +358,7 @@ def create_cluster( response = self.client.post( "/clusters/", params=dict(workspace=str(self.id)), - json=dict(name=cluster_name, slug=cluster_slug), + data=dict(name=cluster_name, slug=cluster_slug), ) handle_error_with_response(response) @@ -426,7 +426,7 @@ def create_workspace( ) -> Workspace: response = self.post( "/workspaces", - json=dict(slug=workspace_slug, name=workspace_name), + data=dict(slug=workspace_slug, name=workspace_name), ) handle_error_with_response(response) new_workspace = Workspace.model_validate_json(response.text)