API 参考
Upsert agent policy
为当前组织和环境创建或更新 StableOps Agent 策略,配置允许的工具、审批阈值与相关限制,让自动化动作始终遵守明确授权边界,并为后续请求保留可审计的策略依据。查阅请求字段、校验规则和响应结构,将策略配置可靠接入管理后台或基础设施自动化流程。
POST
/v1/agent/policyAuthorization
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"
}这篇文档怎么样?
最后更新