Skip to main content

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.

Scopeworkflows:author
AsynchronousNo
MCP toolrestore_workflow_template_version
Portal permissionsrollback_workflow_template_versions

Parameters​

NameInTypeRequiredDescription
workflow_template_idpathstringRequired
workflow_template_version_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Responses​

StatusDescriptionBody
200Success.application/json WorkflowTemplateVersion or object
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

WorkflowTemplateVersion​

FieldTypeRequiredDescription
created_atstring (date-time) or nullRequired
created_byUserRefRequired
is_currentbooleanRequiredtrue for the version that runs now.
node_countintegerRequired≥ -2147483648; ≤ 2147483647
parent_workflow_template_version_idstring or nullRequiredThe version this one was saved on top of; null for the first.
workflow_template_idstringRequired
workflow_template_version_idstringRequired