From cf70efaa2f8bb70553281da2bb3afabb898d810f Mon Sep 17 00:00:00 2001 From: Peter Gillich Date: Wed, 23 Jul 2025 13:42:24 +0200 Subject: [PATCH] Fix: folderIds=0 at get_all_folder_ids_and_names Fixes https://github.com/ZPascal/grafana_api_sdk/issues/125 by simple way the folderIds=0 must be replaced to folderIds=null Issue was intruduced with Grafana 12. Fix is tested with Grafana 11 and 12. --- grafana_api/folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana_api/folder.py b/grafana_api/folder.py index cc5826b..189d44f 100644 --- a/grafana_api/folder.py +++ b/grafana_api/folder.py @@ -399,7 +399,7 @@ def get_all_folder_ids_and_names(self) -> list: """ folders_raw: list = Api(self.grafana_api_model).call_the_api( - f"{APIEndpoints.SEARCH.value}?folderIds=0" + f"{APIEndpoints.SEARCH.value}?folderIds=null" ) folders_raw_len: int = len(folders_raw) folders: list = list()