Update Workflow Template
update_workflow_templateReplace an existing custom workflow template's definition. This is a full replacement, not a patch: supply name and steps as you want them to end up, because anything omitted is not carried over. Built-in templates are read-only, and only the template's owner may change it. Steps run sequentially in the order given; depends_on is builder metadata only and does not change execution order. Requires authentication and the workflows:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Template name after the update. | |
| slug | Yes | Slug of the template to replace, from list_workflows. | |
| tags | No | Tags after the update. | |
| steps | No | The complete step list after the update, in run order. | |
| domain | No | Grouping domain after the update. | |
| description | No | Description after the update. | |
| expected_template_fingerprint | No | Optional. The definition fingerprint you last saw for this template, returned by update_workflow_template when it last succeeded. Supply it and the write refuses, changing nothing, if the stored template is no longer the one that fingerprint names -- someone else edited or deleted it since you read it. Omit it and the write proceeds as it always has, overwriting whatever is there. This is not the definition_sha reported for a run: that one also reflects global configuration, this one names the stored file alone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |