From 979e78e947977512f2541399f726ecba1a760020 Mon Sep 17 00:00:00 2001 From: Shreyas Pimpalgaonkar Date: Tue, 22 Oct 2024 15:31:17 -0700 Subject: [PATCH] up --- py/sdk/mixins/kg.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/py/sdk/mixins/kg.py b/py/sdk/mixins/kg.py index e61d5d6fe..0e5462fa3 100644 --- a/py/sdk/mixins/kg.py +++ b/py/sdk/mixins/kg.py @@ -244,8 +244,11 @@ async def delete_graph_for_collection( NOTE: Setting this flag to true will delete entities and triples for documents that are shared across multiple collections. Do not set this flag unless you are absolutely sure that you want to delete the entities and triples for all documents in the collection. """ - return await self._make_request( # type: ignore - "DELETE", - f"delete_graph_for_collection/{collection_id}", - params={"cascade": cascade}, - ) + + data = { + "collection_id": str(collection_id), + "cascade": cascade, + } + + return await self._make_request("DELETE", "delete_graph_for_collection", json=data) # type: ignore +