---
title: "Replace the draft (send baseVersion to avoid overwriting newer changes)"
method: PUT
path: "/api/v1/page"
---

# Replace the draft (send baseVersion to avoid overwriting newer changes)

`PUT /api/v1/page`

## Request

- Base URL: `https://posy.page`
- URL: `https://posy.page/api/v1/page`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://posy.page/api/auth/oauth2/authorize`, token URL `https://posy.page/api/auth/oauth2/token`, scopes: `page:write`)

## Request body

- object
  - `page` PageSchemaJson, required (unresolved $ref)
  - `baseVersion` integer

## Response `200`

Saved

## Other responses

- `409`: The page changed since baseVersion

---

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