API 参考
Reject an agent action
拒绝一项等待审批的 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"
}这篇文档怎么样?
最后更新