---
title: "Rollback plan to a previous version (Enterprise only)"
method: POST
path: "/api/v1/plan/{id}/rollback/{version}"
tags: ["Multi-Agent Planning"]
---

# Rollback plan to a previous version (Enterprise only)

`POST /api/v1/plan/{id}/rollback/{version}`

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/plan/{id}/rollback/{version}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/plan/:id/rollback/:version/post.ts> (a function with typed inputs; its response is checked against the schema)

Rollback a plan to a previously saved version. This creates a new version
that restores the plan state from the specified historical version.

Uses the plan's version history to retrieve the target version and applies
it as the current state. Returns 409 if a concurrent modification occurred.

**Requires:** Enterprise license.

## Path parameters

- `id` string, required
- `version` integer, required

## Request body

- object

## Response `200`

Plan rolled back successfully

- RollbackPlanResponse: Response after rolling back a plan to a previous version
  - `plan_id` string, required: Plan identifier
  - `version` integer, required: New version number after rollback
  - `previous_version` integer, required: The version that was restored
  - `status` 'pending' | 'executing', required: Plan status after rollback

## Other responses

- `403`: Enterprise license required (community mode)
- `404`: Plan or version not found
- `409`: Version conflict (concurrent modification)

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/revisions/f408ef3ec9dd?raw)
