Staging step of the artifact-promotion ladder (PLT-210): writes a `coordinator.pending_actions` row from one of a persisted consult’s `suggestedActions` (referenced by `consultId` + `actionIndex`) and returns the staged id + preview for the confirm modal
POST/api/coordinator/pending-actions
Staging step of the artifact-promotion ladder (PLT-210): writes a coordinator.pending_actions row from one of a persisted consult’s suggestedActions (referenced by consultId + actionIndex) and returns the staged id + preview for the confirm modal. This is the ONLY route that creates pending actions; it never runs a side effect — execution is the separate [id]/execute step.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
Successful response
Validation failure (malformed body, or actionIndex out of range).
Caller is not authenticated.
Coordinator is in read-only mode for this initiative.
Consult not found (or not visible to the caller via RLS).
The referenced suggested action has an unsupported kind.