Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
DELETE /v1/vaults/{vault_id}
永久删除指定的 Vault 及其关联的所有凭证。删除操作不可撤销。
请求头
| 头部 | 必选 | 说明 |
|---|
Authorization | 是 | Bearer <PAT> |
路径参数
| 参数 | 类型 | 必选 | 说明 |
|---|
vault_id | string | 是 | Vault 的唯一标识符 |
示例请求
curl -X DELETE "https://openapi.qoder.sh/api/v1/cloud/vaults/vault_019e3bb940277f0db05ab74291acf6ef" \
-H "Authorization: Bearer $QODER_PAT"
示例响应
HTTP 204 No Content
无响应体。返回 HTTP 204 表示删除成功。
错误码
| HTTP | type | 触发条件 |
|---|
| 401 | authentication_error | 缺少或无效的认证令牌 |
| 404 | not_found_error | Vault 不存在或已删除 |
注意事项
- 删除操作不可逆,删除后无法恢复
- 已删除的 Vault 在后续 GET 请求中返回 404
- 关联的凭证将一并被删除
- 可以删除
active 或 archived 状态的 Vault
完整错误信封说明详见 错误参考。