Skip to content

Commit

Permalink
Use query param for labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug123 authored and mrueg committed Oct 21, 2024
1 parent 0bdeb4d commit 82aebec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confluence/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 82aebec

Please sign in to comment.