跳转到主要内容

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 及其关联的所有凭证。删除操作不可撤销。

请求头

头部必选说明
AuthorizationBearer <PAT>

路径参数

参数类型必选说明
vault_idstringVault 的唯一标识符

示例请求

curl -X DELETE "https://openapi.qoder.sh/api/v1/cloud/vaults/vault_019e3bb940277f0db05ab74291acf6ef" \
  -H "Authorization: Bearer $QODER_PAT"

示例响应

HTTP 204 No Content 无响应体。返回 HTTP 204 表示删除成功。

错误码

HTTPtype触发条件
401authentication_error缺少或无效的认证令牌
404not_found_errorVault 不存在或已删除

注意事项

  • 删除操作不可逆,删除后无法恢复
  • 已删除的 Vault 在后续 GET 请求中返回 404
  • 关联的凭证将一并被删除
  • 可以删除 activearchived 状态的 Vault
完整错误信封说明详见 错误参考