fusion_prepare_action
Preview an action without sending anything: validate the payload, catch forbidden requests, and receive a token to commit only after explicit user approval.
Instructions
Check an action and hold it for confirmation. Sends NOTHING to the pod.
Returns exactly what would travel, the guard's verdict, and a token. The
action reaches Fusion only when fusion_commit_action presents that token.
Show the preview to the user in their own words and get an explicit yes before committing. That pause exists here because Fusion has none: an authorised, valid POST executes on arrival.
This cannot tell you the action will succeed. There is no dry-run for a Fusion create -- a valid POST commits -- so the pod has not seen this payload yet. What it can do is stop an action the policy forbids, and show you the fields the snapshot says are required before you spend a round trip.
Args:
resource: e.g. purchaseRequisitions. Use fusion_api_list_actions
to see what this account may actually create.
payload: The record to send. Resolve every id with
fusion_resolve_value first.
verb: POST to create, PATCH to change an existing record.
record_id: Required for PATCH -- the record to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verb | No | POST | |
| payload | Yes | ||
| resource | Yes | ||
| record_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||