---
title: "Revert Section"
method: POST
path: "/v1/projects/{project_id}/context/sections/{section_id}/revert"
tags: ["project-context"]
---

# Revert Section

`POST /v1/projects/{project_id}/context/sections/{section_id}/revert`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/context/sections/{section_id}/revert`
- Auth: none declared

Restore a section to an earlier version (ContextWriter — context:write) — via the normal
write path (a new history row, never destructive). Re-creates it if deleted.
Unknown version -> 404.

## Path parameters

- `section_id` string, required
- `project_id` string, required

## Request body

- SectionRevertIn
  - `version` integer, required

## Response `200`

Successful Response

- SectionOut
  - `uuid` string, required
  - `title` string, required
  - `type` string, required
  - `languages` string[], required
  - `position` integer, required
  - `updated_at` string, date-time, nullable
  - `body` string, required

## Other responses

- `422`: Validation Error

---

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