---
title: "Restore Service Rules Version"
method: POST
path: "/pages/service-rules/history/{rule_id}/restore"
tags: ["pages"]
---

# Restore Service Rules Version

`POST /pages/service-rules/history/{rule_id}/restore`

## Request

- The document declares no server URL.
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/pages/service-rules/history/:rule_id/restore/post.ts> (a function with typed inputs; its response is checked against the schema)

Восстановление версии правил сервиса из истории.

## Path parameters

- `rule_id` integer, required

## Query parameters

- `language` string

## Response `201`

Successful Response

- ServiceRulesResponse
  - `id` integer, required
  - `title` string, required
  - `content` string, required
  - `language` string, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `2360876ff9c5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/changes/pages/service-rules/history/:rule_id/restore/post.md)

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
