talonic_process_publish_approval
Where a change to a process stands before it goes live: whether the process needs an approver, who the approvers are, who asked, what was decided, and the change in plain lines (changes). It always speaks of exactly what talonic_process_publish would make live now. state is not_needed, nothing_to_publish, not_requested, waiting, approved or rejected. Call after talonic_process_publish answered that the change needs approval, or to see what waits for the user's decision (canDecide).
Availability
Listed when your workspace role has the Process Plane view permission. Changing, publishing and signing are checked again on every call against your role in the process.
Behaviour and cost
- Reads only. It never changes workspace data.
- Cost: no credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
| process_id * | string | — |
Example
// talonic_process_publish_approval({ "process_id": "1111…" })
{ "required": true, "approvers": ["QA"], "state": "waiting", "requestedBy": "Sam", "canDecide": true, "changes": ["Review: Who signs: Rachel → QA"] }Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.