Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
workflowId |
string | yes | The workflow to share. |
confirmed |
boolean | no | true only after the user has seen the preview and agreed. |
Returns
Without confirmed: what would be published — the workflow's name and step count, whether it updates an existing link, and every redaction (secrets, secret-looking values and home-directory paths removed from the copy). Nothing is uploaded.
With confirmed: true: the link (url) and the version number. Sharing a workflow again uploads a new version under the same link.
Notes
The agent must show the preview to the user and ask before the confirmed call. The engine's license identifies the author — the site account that owns it. Personal-scope workflows and CodyCody package content are refused. See Share a workflow.