Restore a workflow history version in Dynatrace with the AutomationEngine API by workflow ID and version, then deploy the restored workflow.
| POST | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/automation/v1/workflows/{id}/history/{version}/restore |
You restore the workflow identified by the id path parameter to the specified version path parameter. The request also accepts adminAccess, and it returns a 200 response with no body after deployment.
To execute this request, you need a platform token or OAuth access token with automation:workflows:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| adminAccess | boolean | Allow access to all workflows/executions - additionally requires automation:workflows:admin | query | Optional |
| id | string | A UUID string identifying this workflow. | path | Required |
| version | string | - | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | - | No response body |
| 4XX | Error | - |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| message | string | - |
| code | integer | - |
| details | Error | - |
ErrorDetails object| Element | Type | Description |
|---|---|---|
| errorCode | string | - |
| errorRef | string | - |
{"error": {"message": "string","code": 1,"details": {"errorCode": "string","errorRef": "string"}}}