Docs

Reference

Restore an earlier config

Restore an earlier revision of a pack / routine / rule as a new revision (pass expectedRevision).

View MarkdownThis page is generated from the source code on every release.

Restore an earlier revision of a pack / routine / rule as a new revision (pass expectedRevision).

Overview

Name Value
Code automation.rollback
New code (v2) automations.rollback
Scope needed automation.write
Risk Write
May need confirmation No
Runs as Answers right away
Needs Idempotency-Key No
Member roles allowed owner, manager
In the app Automation → Change history → Restore this version

Input fields

Field Type Required Description
type "config_pack" | "routine" | "automation_rule" Yes
id uuid Yes
revision integer Yes
expectedRevision integer No

Example request

curl -X POST https://tlg.builera.app/api/public/v2/ops/automation.rollback \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"config_pack","id":"00000000-0000-0000-0000-000000000000","revision":1}'

Output fields (data)

Field Type Required
ok true Yes
revision null | number Yes

Example answer

{
  "data": {
    "ok": true,
    "revision": 1
  }
}

Using it over MCP

Not listed on any profile: call tools_describe then tools_run with code: "automation.rollback". Tool name when listed: automation_rollback.

Was this page helpful?

Last checked: 10/24/2026 · build 2.0