---
title: "Restore previous version"
method: POST
path: "/user/automate/flows/{id}/restore"
tags: ["Automations"]
---

# Restore previous version

`POST /user/automate/flows/{id}/restore`

## Request

- Base URL: `https://app.famulor.de/api`
- URL: `https://app.famulor.de/api/user/automate/flows/{id}/restore`
- Auth: HTTP bearer

Roll a Famulor automation back to its previous published version.

[Docs](https://docs.famulor.io/api-v1/automations/restore)

## Path parameters

- `id` string, required

## Response `200`

Response

- object
  - `automation_id` string: The automation’s ID
  - `name` string: The automation’s name after the restore
  - `status` string: `enabled` or `disabled` — the on/off state the automation had going into the restore is preserved
  - `restored_version_id` string: The ID of the version that is now live
  - `note` string: Confirmation that the previous version was restored and re-published

## Other responses

- `401`: Fehlender oder ungültiger API-Key.
- `404`: Not Found
- `422`: Validation Error

---

[API](https://skmtc.dev/famulor/apis/famulor-api.md) · [All operations](https://skmtc.dev/famulor/apis/famulor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/famulor/apis/famulor-api/revisions/3b938c370721?raw)
