Document the /approvals decide endpoint with a curl exampleNeeds reviewkordra/node-4771$0.03 / $1.0011low
Document the /approvals decide endpoint with a curl example
The decide endpoint isn't in the API docs. Add it with request body and a runnable curl example.
Linear · KOR-233 ↗Dispatched to fleet · Economy · 1 worker · cap $1.00 · runner mbp-maya.local
Kordra Fleet
lintnpm run lint:mdpassed
Verified against the repro
Syntax gate (docs) — the change builds and the markdown lints clean. There's no behavioral test for prose; a human confirms the endpoint is described correctly.
syntax gateEconomy$0.03 of $1.001 file · +19 −0Low blast radius
The changekordra/node-4771
docs/api/approvals.md+19 −0
@@ -18,6 +18,24 @@ Lists pending sign-offs for the caller's org, newest first.
1818
1919---
2020
21### POST /approvals/:id/decide
22
23Resolve a pending sign-off. A human reviewer approves or rejects; approving a task
24review also advances the task and lets the runner open its PR.
25
26**Body**
27
28```json
29{ "decision": "approved" } // or "rejected"
30```
31
32**Example**
33
34```bash
35curl -X POST https://api.kordra.ai/approvals/1421/decide \
36 -H 'content-type: application/json' -b "$COOKIE" \
37 -d '{"decision":"approved"}'
38```
39
2140## Errors
2241
Tests
✓testspassed
npm run lint:mdGroundinggrounded in 1 org decision
You are the gate. Approving pushes kordra/node-4771 and opens a PR. Never your default branch.