Skip to content

Commit 7113398

Browse files
authored
Merge pull request #3 from gen-ltd/add-bulk-uncheck
Add bulk uncheck
2 parents 2eeb62d + 3f2293a commit 7113398

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

openapi.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ components:
177177
required:
178178
- taskIds
179179

180+
TaskBulkUncheckInput:
181+
type: object
182+
properties:
183+
taskIds:
184+
type: array
185+
items:
186+
type: string
187+
format: uuid
188+
description: List of task IDs to uncheck
189+
required:
190+
- taskIds
191+
180192
TaskMoveInput:
181193
type: object
182194
properties:
@@ -576,6 +588,51 @@ paths:
576588
"400":
577589
description: Bad request
578590

591+
/categories/{categoryId}/tasks/bulk-uncheck:
592+
parameters:
593+
- name: categoryId
594+
in: path
595+
required: true
596+
schema:
597+
type: string
598+
format: uuid
599+
description: ID of the category containing the tasks
600+
601+
post:
602+
summary: Uncheck multiple tasks at once
603+
description: Marks multiple tasks as unchecked without changing their order in the list
604+
operationId: bulkUncheckTasks
605+
tags:
606+
- Tasks
607+
requestBody:
608+
required: true
609+
content:
610+
application/json:
611+
schema:
612+
$ref: "#/components/schemas/TaskBulkUncheckInput"
613+
responses:
614+
"200":
615+
description: Tasks unchecked successfully
616+
content:
617+
application/json:
618+
schema:
619+
type: object
620+
properties:
621+
taskIds:
622+
type: array
623+
items:
624+
type: string
625+
format: uuid
626+
description: IDs of the tasks that were unchecked
627+
"401":
628+
description: Unauthorized
629+
"403":
630+
description: Forbidden
631+
"404":
632+
description: Category not found
633+
"400":
634+
description: Bad request
635+
579636
/tasks/move:
580637
post:
581638
summary: Move tasks from one category to another

0 commit comments

Comments
 (0)