API 參考
拒絕 Agent 動作
拒絕一項等待審批的 StableOps Agent 動作,並可記錄拒絕原因;用於管理員阻止不符合策略或業務預期的支付操作,同時保留明確的狀態變化與審計依據。瞭解所需路徑參數、可選原因欄位、許可權範圍和回應狀態,以便審批介面安全完成拒絕流程。
POST
/v1/agent/actions/{id}/rejectAuthorization
bearerAuth AuthorizationBearer <token>
Paste your API key from the dashboard.
In: header
Path Parameters
id*unknown
Agent action id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agent/actions/{id}/reject" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"agent_session_id": "string",
"tool": "string",
"input": "string",
"status": "string",
"approver_id": "string",
"decided_at": "string",
"executed_at": "string",
"result": "string",
"error_message": "string",
"created_at": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}這篇文件怎麼樣?
最後更新