From 0e0ececa2dc755fbc06e14ed3f01ac0d8e1810e2 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 9 Jun 2026 21:10:37 +0200 Subject: [PATCH] docs(api/v2): tag bulk label fields for the v2 schema --- pkg/models/label_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/label_task.go b/pkg/models/label_task.go index 312f5d027..024b0e039 100644 --- a/pkg/models/label_task.go +++ b/pkg/models/label_task.go @@ -415,7 +415,7 @@ func (t *Task) UpdateTaskLabels(s *xorm.Session, creator web.Auth, labels []*Lab // LabelTaskBulk is a helper struct to update a bunch of labels at once type LabelTaskBulk struct { // All labels you want to update at once. - Labels []*Label `json:"labels"` + Labels []*Label `json:"labels" doc:"The complete set of labels the task should have after the call. Any label currently on the task that is not in this list is removed; any label in the list that is not yet on the task is added. You must be able to see every label you attach."` TaskID int64 `json:"-" param:"projecttask"` web.CRUDable `json:"-"`