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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template_id": "<template_id>",
"expected_metadata_revision": "<expected_metadata_revision>",
"is_active": "<is_active>"
},
"name": "update_workflow_template_state"
}
}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 |