StableOps
API 參考

建立或更新 Agent 策略

為目前組織和環境建立或更新 StableOps Agent 策略,設定允許的工具、審批閾值與相關限制,讓自動化動作始終遵守明確授權邊界,併為後續請求保留可審計的策略依據。查閱請求欄位、校驗規則和回應結構,將策略設定可靠接入管理後台或基礎設施自動化流程。

POST/v1/agent/policy

Authorization

bearerAuth
AuthorizationBearer <token>

Paste your API key from the dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/agent/policy" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "allowed_tools": [
    "string"
  ],
  "require_approval": true,
  "created_at": "string",
  "updated_at": "string"
}
{
  "statusCode": -9007199254740991,
  "message": "string",
  "error": "string"
}
{
  "statusCode": -9007199254740991,
  "message": "string",
  "error": "string"
}

這篇文件怎麼樣?

最後更新