---
title: "Replace content without extending the original expiry"
method: PUT
path: "/v1/previews/{id}"
---

# Replace content without extending the original expiry

`PUT /v1/previews/{id}`

## Request

- Base URL: `https://api.aifra.ru`
- URL: `https://api.aifra.ru/v1/previews/{id}`
- Auth: HTTP bearer

## Headers

- `X-AI-Deploy-Accept-Terms` 'true', required
- `X-AI-Deploy-Anonymous-ID` string, required
- `X-AI-Deploy-Source` 'codex' | 'chatgpt' | 'claude-code' | 'cursor' | 'github' | 'mcp-registry' | 'yandex-organic' | 'preview' | 'google-organic' | 'telegram' | 'habr' | 'vc' | 'direct' | 'unknown', required
- `X-AI-Deploy-Client-Name` string, required
- `X-AI-Deploy-Client-Version` string, required

## Response `200`

Immutable revision switched atomically

## Other responses

- `401`: Management token invalid
- `410`: Preview expired

---

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