---
title: "Restore a workflow revision"
method: POST
path: "/workflows/{workflowID}/code/restore"
tags: ["Workflows"]
---

# Restore a workflow revision

`POST /workflows/{workflowID}/code/restore`

Creates a new revision with the source of the named revision. Does NOT dedup against the current revision so the action is auditable in the revision history.

## Path parameters

- `workflowID` string, required — workflow identifier

## Request body

- WorkflowRestoreRevisionRequest
  - `revision_id` string, required

## Response `200`

OK

- WorkflowSaveCodeResponse
  - `no_op` boolean, required
  - `revision` integer, required
  - `revision_id` string, required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/axilioai/apis/axilio-api-2.md) · [All operations](https://skmtc.net/axilioai/apis/axilio-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/axilioai/axilio-api-2/versions/d7ecf9466d6d/schema)
