talonic_process_script_approve
Approve the exact script that passed its test, by its hash from talonic_process_scripts. An approval is a person's decision that lets the script go live: call only when the user has read the script and says to approve it.
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
- Changes workspace data and can't be undone. Call it only when the user asked.
Parameters
| Parameter | Type | Description |
|---|---|---|
| process_id * | string | — |
| step_id * | string | — |
| hash * | string | The tested script's hash |
Example
Example
// talonic_process_script_approve({ "process_id": "1111…", "step_id": "s_script", "hash": "9f2c…" })
{ "approved": true, "hash": "9f2c…" }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.
Frequently asked questions
Can I approve a script that failed its test?+
No. Only a script whose current text passed its test can be approved.