跳转到主要内容
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.