From 822fde25942a94db90833686f313c5fb096c2c0b Mon Sep 17 00:00:00 2001 From: "Frederick [Bot]" Date: Fri, 19 Jun 2026 08:34:37 +0000 Subject: [PATCH] [skip ci] Updated swagger docs --- pkg/swagger/docs.go | 6 +++++- pkg/swagger/swagger.json | 6 +++++- pkg/swagger/swagger.yaml | 10 +++++++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index e976b4d74..36fee319d 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -3438,7 +3438,7 @@ const docTemplate = `{ "JWTKeyAuth": [] } ], - "description": "Copies the project, tasks, files, kanban data, assignees, comments, attachments, labels, relations, backgrounds, user/team permissions and link shares from one project to a new one. The user needs read access in the project and write access in the parent of the new project.", + "description": "Copies the project, tasks, files, kanban data, assignees, comments, attachments, labels, relations and backgrounds from one project to a new one. User/team permissions and link shares are only copied when duplicate_shares is set to true. The user needs read access in the project and write access in the parent of the new project.", "consumes": [ "application/json" ], @@ -9665,6 +9665,10 @@ const docTemplate = `{ "models.ProjectDuplicate": { "type": "object", "properties": { + "duplicate_shares": { + "description": "Whether to copy the project's shares to the duplicate", + "type": "boolean" + }, "duplicated_project": { "description": "The copied project", "allOf": [ diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 98f528565..a20519dcd 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -3430,7 +3430,7 @@ "JWTKeyAuth": [] } ], - "description": "Copies the project, tasks, files, kanban data, assignees, comments, attachments, labels, relations, backgrounds, user/team permissions and link shares from one project to a new one. The user needs read access in the project and write access in the parent of the new project.", + "description": "Copies the project, tasks, files, kanban data, assignees, comments, attachments, labels, relations and backgrounds from one project to a new one. User/team permissions and link shares are only copied when duplicate_shares is set to true. The user needs read access in the project and write access in the parent of the new project.", "consumes": [ "application/json" ], @@ -9657,6 +9657,10 @@ "models.ProjectDuplicate": { "type": "object", "properties": { + "duplicate_shares": { + "description": "Whether to copy the project's shares to the duplicate", + "type": "boolean" + }, "duplicated_project": { "description": "The copied project", "allOf": [ diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index a926e18b8..515ff828c 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -577,6 +577,9 @@ definitions: type: object models.ProjectDuplicate: properties: + duplicate_shares: + description: Whether to copy the project's shares to the duplicate + type: boolean duplicated_project: allOf: - $ref: '#/definitions/models.Project' @@ -4703,9 +4706,10 @@ paths: consumes: - application/json description: Copies the project, tasks, files, kanban data, assignees, comments, - attachments, labels, relations, backgrounds, user/team permissions and link - shares from one project to a new one. The user needs read access in the project - and write access in the parent of the new project. + attachments, labels, relations and backgrounds from one project to a new one. + User/team permissions and link shares are only copied when duplicate_shares + is set to true. The user needs read access in the project and write access + in the parent of the new project. parameters: - description: The project ID to duplicate in: path