From 82aebec1eb08ae5b3c16ba3f4fe8b6e8f20b9043 Mon Sep 17 00:00:00 2001 From: Smaug123 <3138005+Smaug123@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:11:15 +0100 Subject: [PATCH] Use query param for labels --- confluence/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluence/api.go b/confluence/api.go index 902dc7be..f9e46142 100644 --- a/confluence/api.go +++ b/confluence/api.go @@ -599,8 +599,8 @@ func (api *API) AddPageLabels(page *PageInfo, newLabels []string) (*LabelInfo, e func (api *API) DeletePageLabel(page *PageInfo, label string) (*LabelInfo, error) { request, err := api.rest.Res( - "content/"+page.ID+"/label/"+label, &LabelInfo{}, - ).Delete() + "content/"+page.ID+"/label", &LabelInfo{}, + ).SetQuery(map[string]string{"name": label}).Delete() if err != nil { return nil, err }