> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posy.page/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace the draft

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



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/page
openapi: 3.1.0
info:
  title: Posy API
  version: '1'
  description: >-
    Make and edit a Posy link-in-bio page. Everything edits the draft until you
    call publish.
servers:
  - url: https://posy.page
    description: posy.page (or your own server)
security: []
paths:
  /api/v1/page:
    put:
      summary: Replace the draft
      description: Replace the draft (send baseVersion to avoid overwriting newer changes)
      operationId: replace-the-draft
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                page:
                  type: object
                  description: >-
                    A full Posy page. JSON Schema:
                    https://posy.page/schema/page.schema.json
                baseVersion:
                  type: integer
              required:
                - page
      responses:
        '200':
          description: Saved
        '409':
          description: The page changed since baseVersion
      security:
        - bearer: []
        - oauth:
            - page:write
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A "posy_…" API key from the dashboard
    oauth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://posy.page/api/auth/oauth2/authorize
          tokenUrl: https://posy.page/api/auth/oauth2/token
          scopes:
            page:write: Read and edit your page

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.