Multi-Agent Planning
Reject a MAP plan step (HITL parity with WCP)
Plan-scoped rejection endpoint. Symmetric with the WCP endpoint (/api/v1/workflows/{id}/steps/{step_id}/reject) — same response shape (ApprovalResponse) plus plan_id. See ADR-046.
Rejection aborts the workflow / plan: the WCP service's RejectStep handles the abort. A plan no workflow backs has no paused step, and answers 404.
post/api/v1/plans/{planId}/steps/{stepId}/reject
Request
- Base URLhttps://orchestrator.getaxonflow.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
planIdstring required
stepIdstring required
Request body
Response
Step rejected successfully
Example response
{
"workflow_id": "wf_41231a72-9b0c-4f5e-8a13-6d2e0c7b4f91",
"plan_id": "plan-42",
"step_id": "step-2",
"status": "approved",
"decision": "allow",
"reason": "Approved: High-value transfer requires oversight",
"approval_status": "approved",
"approval_id": "318a270f-7b42-5c56-a191-8dbd1bf2e1e4",
"approved_by": "fraud.analyst@banking.example",
"rejected_by": "fraud.analyst@banking.example",
"retry_context": {
"gate_count": 2,
"completion_count": 1,
"prior_completion_status": "completed",
"prior_output_available": true,
"last_decision": "allow",
"idempotency_key": "payment:wire:invoice-7721"
},
"message": "Step approved"
}Changes
No recorded changes to this operation across all 1 revision of this API.