Restore an earlier version as the newest.
POST/api/v1/workflow-templates/{workflow_template_id}/versions/{workflow_template_version_id}/restoreworkflows:author
Saves a copy of the version as a new version on top of the newest, and that copy is the one that runs. Running workflows keep the version they started on.
| Scope | workflows:author |
| Asynchronous | No |
| MCP tool | restore_workflow_template_version |
| Portal permissions | rollback_workflow_template_versions |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_template_id | path | string | Required | |
workflow_template_version_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json WorkflowTemplateVersion or object |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict, idempotency_in_progress | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |
WorkflowTemplateVersion
| Field | Type | Required | Description |
|---|---|---|---|
created_at | string (date-time) or null | Required | |
created_by | UserRef | Required | |
is_current | boolean | Required | true for the version that runs now. |
node_count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
parent_workflow_template_version_id | string or null | Required | The version this one was saved on top of; null for the first. |
workflow_template_id | string | Required | |
workflow_template_version_id | string | Required |