From e135fa35fcf1104eb7f698eef1d3e56f889d98fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Gomez?= Date: Tue, 18 Jun 2024 13:22:48 +0200 Subject: [PATCH] Parse parentUid for folders --- folders.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/folders.go b/folders.go index 2c960800..32d8a119 100644 --- a/folders.go +++ b/folders.go @@ -15,9 +15,10 @@ var ErrFolderNotFound = errors.New("folder not found") // Folder represents a dashboard folder. // See https://grafana.com/docs/grafana/latest/reference/dashboard_folders/ type Folder struct { - ID uint `json:"id"` - UID string `json:"uid"` - Title string `json:"title"` + ID uint `json:"id"` + UID string `json:"uid"` + ParentUID string `json:"parentUid"` + Title string `json:"title"` } // FindOrCreateFolder returns the folder by its name or creates it if it doesn't exist.