Workflows
Perform actions with a workflow version
Executes "Restore" action on the specified workflow version.
Restoring creates a new active version from the selected version's snapshot. The new version receives an auto-generated name; use PATCH to assign a custom name.
A workflow template can contain up to 20 versions. If the limit is reached, retry the request with forceDeleteOldest = true to delete the oldest non-active version as part of the same operation. The restore is rejected if the oldest non-active version is the one being restored.
post/v1/workflow-templates/{id}/versions/{versionId}/actions
Request
- Base URLhttps://api.emma.ms/external
- AuthHTTP bearer
Path parameters
idinteger required
ID of the workflow template
versionIdinteger required
ID of the workflow template version
Request body
Example request
{
"action": "restore"
}Response
Workflow version restored successfully
Example response
{
"id": 123,
"name": "v1",
"createdAt": "2026-11-26T14:54:11",
"createdById": 543,
"createdByName": "Automation User",
"tagsRestorable": true,
"sequenceNumber": 7,
"restoredFrom": 123,
"restoredFromName": "v11",
"snapshot": {
"name": "Deploy MongoDB",
"description": "Deploy MongoDB from a shell script.",
"status": "PUBLISHED",
"resourceTypes": [
"COMPUTE"
],
"resourceParams": [
{
"name": "minCpuCores",
"value": "4"
}
],
"tags": [
{
"tagId": "123",
"key": "environment",
"value": "production"
}
],
"contentType": "Shell",
"content": "echo Hello, World!",
"isContentValid": true,
"contentParams": [
{
"name": "command1",
"defaultValue": "echo Hello, World!",
"mandatory": true,
"description": "Database password used by the deployment script.",
"hasDefaultValue": true,
"vaultVersion": 1
}
],
"contentExecutionTimeout": 10
}
}Changes
No recorded changes to this operation across all 1 revision of this API.