---
title: "Show an earlier version in the preview, read-only (turnId null: the current one again). Nothing is changed"
method: POST
path: "/builder/sessions/{sessionId}/preview/version"
tags: ["Builder"]
---

# Show an earlier version in the preview, read-only (turnId null: the current one again). Nothing is changed

`POST /builder/sessions/{sessionId}/preview/version`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/preview/version`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `sessionId` string, uuid, required

## Request body

- object
  - `turnId` string, uuid, nullable, required: The version to show in the preview; null: back to the current one

## Response `200`

Shown

- object
  - `previewing` string, nullable, required
  - `preview` 'synced' | 'starting' | 'none', required

## Other responses

- `400`: Invalid request (code invalid_request; details.reason: invalid, unmappable, not_found, secret_detected, unsupported, too_large, unreadable)
- `401`: Missing or invalid session/token (code unauthorized)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Refused for now (code conflict; details.reason: turn_running while the AI changes the site, stale when the files changed since the editor loaded them (details.version: the current one), previewing_version, archived, in_use)
- `429`: Too many changes at once (code rate_limited); see Retry-After
- `501`: Not available on this server (code not_configured)

---

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