---
title: "Load a revision into the draft"
method: POST
path: "/drops/{slug}/revisions/{id}/restore"
---

# Load a revision into the draft

`POST /drops/{slug}/revisions/{id}/restore`

## Request

- Base URL: `https://ship.page`
- URL: `https://ship.page/drops/{slug}/revisions/{id}/restore`
- Auth: HTTP bearer

Replaces the draft with the revision's files; nothing goes live until you publish. Send the current draft_rev (0 when there is no draft).

## Request body

- object
  - `draft_rev` integer, required

## Response `200`

The new draft.

- object
  - `draft` EditorDraft
    - `draft_rev` integer, required: Send it back on the next draft write; it changes on every write.
    - `updated_at` string, date-time, required
    - `files` EditorFile[], required
      - `path` string, required
      - `bytes` integer, required
      - `sha256` string, required
      - `mime` string, required

## Other responses

- `401`: Missing or invalid credential.
- `402`: Subscriber-gated feature on a free account. The body's `hint` and `upgrade_url` tell the user how to upgrade.
- `404`: Not found (also returned for resources owned by someone else).
- `409`: draft_changed: the draft changed elsewhere. The body's `draft` is the server copy (null when it was published or discarded).
- `410`: The drop has expired (expired).
- `429`: Rate limited. Back off per the Retry-After header (60s).
- `503`: Required backend unavailable. Password creation and rotation fail closed when billing cannot be verified; retry later.

## Changes

- **2026-10-20** `99aad34506e8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ship/apis/ship-page/changes/drops/:slug/revisions/:id/restore/post.md)

---

[API](https://skmtc.dev/ship/apis/ship-page.md) · [All operations](https://skmtc.dev/ship/apis/ship-page/llms.txt) · [OpenAPI document](https://skmtc.dev/ship/apis/ship-page/revisions/99aad34506e8?raw)
