跳轉到主要內容
DELETE
/
api
/
v1
/
policies
/
{id}
Delete Policy
curl --request DELETE \
  --url https://api.agentwallex.com/api/v1/policies/{id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "deleted": true
}

路徑參數

id
string
必填
要刪除的策略 ID(例如 pol_abc123)。
刪除策略會立即移除該約束。請確保有其他策略來維持安全性。

範例

curl -X DELETE https://api.agentwallex.com/api/v1/policies/pol_abc123 \
  -H "X-API-Key: awx_your_api_key"

授權

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

路徑參數

id
string
必填

The policy ID to delete (e.g., pol_abc123).

回應

Policy deleted successfully.

id
string

The deleted policy ID.

deleted
boolean

Confirmation of deletion.