Mial Lewis 4 недель назад
Родитель
Сommit
67c8a98f20
1 измененных файлов с 47 добавлено и 0 удалено
  1. 47 0
      public/api/wekan.yml

+ 47 - 0
public/api/wekan.yml

@@ -2594,6 +2594,53 @@ paths:
             properties:
               _id:
                 type: string
+  /api/boards/{board}/lists/{list}/cards/{card}/archive:
+    post:
+      operationId: archive_card
+      summary: Archive a card
+      description: |
+        Archive a card
+      tags:
+        - Cards
+      consumes:
+        - multipart/form-data
+        - application/json
+      parameters:
+        - name: board
+          in: path
+          description: |
+            the board ID of the card
+          type: string
+          required: true
+        - name: list
+          in: path
+          description: |
+            the list ID of the card
+          type: string
+          required: true
+        - name: card
+          in: path
+          description: |
+            the ID of the card
+          type: string
+          required: true
+      produces:
+        - application/json
+      security:
+          - UserSecurity: []
+      responses:
+        '200':
+          description: |-
+            200 response
+          schema:
+            type: object
+            properties:
+              _id:
+                type: string
+              archived:
+                type: boolean
+              archivedAt:
+                type: string
   /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}:
     post:
       operationId: edit_card_custom_field