Update workflow template state
update_workflow_template_stateArchive or reactivate a workflow template by providing the exact metadata revision, with a replacement required when archiving the default template.
Instructions
Archive or reactivate a template. Requires the OWNER role and the exact expected_metadata_revision. Archiving the default template requires an active replacement_template_id in the same transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| farm_id | No | Farm UUID; defaults to the active farm. | |
| is_active | Yes | ||
| template_id | Yes | ||
| replacement_template_id | No | ||
| expected_metadata_revision | Yes |