[skip ci] Updated swagger docs

This commit is contained in:
Frederick [Bot] 2026-03-04 16:29:06 +00:00
parent 9c23e19644
commit 740ec183d9
3 changed files with 164 additions and 0 deletions

View File

@ -5277,6 +5277,55 @@ const docTemplate = `{
}
}
},
"/tasks/{taskID}/duplicate": {
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Copies a task with all its properties (labels, assignees, attachments, reminders) into the same project. Creates a \"copied from\" relation between the new and original task.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
"summary": "Duplicate a task",
"parameters": [
{
"type": "integer",
"description": "The task ID to duplicate",
"name": "taskID",
"in": "path",
"required": true
}
],
"responses": {
"201": {
"description": "The duplicated task.",
"schema": {
"$ref": "#/definitions/models.TaskDuplicate"
}
},
"403": {
"description": "The user does not have access to the task.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/tasks/{taskID}/labels/bulk": {
"post": {
"security": [
@ -8946,6 +8995,19 @@ const docTemplate = `{
}
}
},
"models.TaskDuplicate": {
"type": "object",
"properties": {
"duplicated_task": {
"description": "The duplicated task",
"allOf": [
{
"$ref": "#/definitions/models.Task"
}
]
}
}
},
"models.TaskPosition": {
"type": "object",
"properties": {

View File

@ -5269,6 +5269,55 @@
}
}
},
"/tasks/{taskID}/duplicate": {
"put": {
"security": [
{
"JWTKeyAuth": []
}
],
"description": "Copies a task with all its properties (labels, assignees, attachments, reminders) into the same project. Creates a \"copied from\" relation between the new and original task.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"task"
],
"summary": "Duplicate a task",
"parameters": [
{
"type": "integer",
"description": "The task ID to duplicate",
"name": "taskID",
"in": "path",
"required": true
}
],
"responses": {
"201": {
"description": "The duplicated task.",
"schema": {
"$ref": "#/definitions/models.TaskDuplicate"
}
},
"403": {
"description": "The user does not have access to the task.",
"schema": {
"$ref": "#/definitions/web.HTTPError"
}
},
"500": {
"description": "Internal error",
"schema": {
"$ref": "#/definitions/models.Message"
}
}
}
}
},
"/tasks/{taskID}/labels/bulk": {
"post": {
"security": [
@ -8938,6 +8987,19 @@
}
}
},
"models.TaskDuplicate": {
"type": "object",
"properties": {
"duplicated_task": {
"description": "The duplicated task",
"allOf": [
{
"$ref": "#/definitions/models.Task"
}
]
}
}
},
"models.TaskPosition": {
"type": "object",
"properties": {

View File

@ -840,6 +840,13 @@ definitions:
updated:
type: string
type: object
models.TaskDuplicate:
properties:
duplicated_task:
allOf:
- $ref: '#/definitions/models.Task'
description: The duplicated task
type: object
models.TaskPosition:
properties:
position:
@ -5299,6 +5306,39 @@ paths:
summary: Update an existing task comment
tags:
- task
/tasks/{taskID}/duplicate:
put:
consumes:
- application/json
description: Copies a task with all its properties (labels, assignees, attachments,
reminders) into the same project. Creates a "copied from" relation between
the new and original task.
parameters:
- description: The task ID to duplicate
in: path
name: taskID
required: true
type: integer
produces:
- application/json
responses:
"201":
description: The duplicated task.
schema:
$ref: '#/definitions/models.TaskDuplicate'
"403":
description: The user does not have access to the task.
schema:
$ref: '#/definitions/web.HTTPError'
"500":
description: Internal error
schema:
$ref: '#/definitions/models.Message'
security:
- JWTKeyAuth: []
summary: Duplicate a task
tags:
- task
/tasks/{taskID}/labels/bulk:
post:
consumes: