---
updatedAt: 2026-04-22T09:23:29.000Z
agentTools:
  projectIndex: https://arctos.readme.io/llms.txt
---

# 刪除補件

刪除指定補件（軟刪除），同時移除 MinIO 檔案

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "arctos OpenAPI"
  },
  "servers": [
    {
      "url": "https://www-sit.arctos.tw/api/v2"
    },
    {
      "url": "https://www-sit.arctos.tw/api/mock-v2"
    },
    {
      "url": "https://api-healthplus-sit.arctos.tw/api/v2"
    },
    {
      "url": "https://ctbc-sit.arctos.tw/api/v2"
    }
  ],
  "paths": {
    "/supplement/do_del": {
      "post": {
        "summary": "刪除補件",
        "tags": [
          "supplement"
        ],
        "description": "刪除指定補件（軟刪除），同時移除 MinIO 檔案",
        "operationId": "post_supplementdo_del",
        "security": [
          {
            "Bearer": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "task_num",
                  "ids"
                ],
                "properties": {
                  "task_num": {
                    "type": "string",
                    "description": "案件編號"
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "補件ID列表（可複數）",
                    "minItems": 1
                  }
                }
              },
              "examples": {
                "刪除單筆": {
                  "summary": "刪除單筆",
                  "value": {
                    "task_num": "202508130000005",
                    "ids": [
                      1
                    ]
                  }
                },
                "刪除多筆": {
                  "summary": "刪除多筆",
                  "value": {
                    "task_num": "202508130000005",
                    "ids": [
                      1,
                      2,
                      3
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "description": "狀態碼"
                    },
                    "message": {
                      "type": "string",
                      "description": "訊息"
                    },
                    "info": {
                      "type": "object",
                      "properties": {
                        "deleted_count": {
                          "type": "integer",
                          "description": "成功刪除筆數"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "部分失敗的錯誤訊息"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "全部成功": {
                    "summary": "全部成功",
                    "value": {
                      "status": 1,
                      "message": "success",
                      "info": {
                        "deleted_count": 2,
                        "errors": []
                      }
                    }
                  },
                  "部分成功": {
                    "summary": "部分成功（部分 ID 不存在）",
                    "value": {
                      "status": 1,
                      "message": "success (成功刪除 1 個檔案，有 1 個失敗)",
                      "info": {
                        "deleted_count": 1,
                        "errors": [
                          "ID 999: 查無此檔案"
                        ]
                      }
                    }
                  },
                  "失敗（補件不存在）": {
                    "summary": "失敗（補件不存在）",
                    "value": {
                      "status": 0,
                      "message": "查無此檔案"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
```