docs(api/v2): tag project duplication fields for the v2 schema

This commit is contained in:
kolaente 2026-06-09 21:26:55 +02:00 committed by Tink
parent 51e5c86f69
commit d5bcbe39b4
1 changed files with 2 additions and 2 deletions

View File

@ -33,10 +33,10 @@ type ProjectDuplicate struct {
// The project id of the project to duplicate
ProjectID int64 `json:"-" param:"projectid"`
// The target parent project
ParentProjectID int64 `json:"parent_project_id,omitempty"`
ParentProjectID int64 `json:"parent_project_id,omitempty" doc:"The id of the project under which the duplicate should be created. Omit or 0 to place the copy at the top level; you need write access to the parent."`
// The copied project
Project *Project `json:"duplicated_project,omitempty"`
Project *Project `json:"duplicated_project,omitempty" readOnly:"true" doc:"The newly created duplicate project, populated by the server in the response."`
web.Permissions `json:"-"`
web.CRUDable `json:"-"`