Restore a prior deployment
dropthis_restore_deploymentRestore a drop to a previous deployment's content by minting a new deployment from the chosen prior one, keeping the URL unchanged.
Instructions
Roll a drop back to a prior deployment's content — the first-class version-history rollback (Pro+). Mints a NEW deployment whose content is copied from the chosen prior deployment (a dep_… id from dropthis_list_deployments) and makes it current; the drop's URL and settings are unchanged — only the content is restored. Restoring the deployment that is already current is a no-op. This IS the rollback path — prefer it over reading an old version with dropthis_get_content and re-publishing the files by hand. Below Pro the server returns feature_not_in_plan (403) with an upgrade_url. Requires drop_id (the drop_… id, id-only — for a public URL or slug call dropthis_resolve first) and deployment_id. Returns the updated parent drop (its unchanged URL + bumped revision).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drop_id | Yes | The `drop_…` id of the drop to roll back (id-only — a URL or slug is rejected; call dropthis_resolve to turn a public URL/slug into its id first). | |
| deployment_id | Yes | The `dep_…` id of the prior deployment to restore (from dropthis_list_deployments). Its content becomes the drop's current version again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The drop's permanent drop_… id — persist it for every follow-up tool. | |
| url | No | The canonical, always-branded public URL (share with humans). | |
| next | No | Structured follow-up hints keyed by action. | |
| slug | No | URL slug — a locator, not an id. | |
| title | No | ||
| rawUrl | No | Raw-bytes URL for a single non-HTML file; null for HTML drops and collections. | |
| status | No | ||
| noindex | No | ||
| metadata | No | ||
| revision | No | ||
| expiresAt | No | ||
| sizeBytes | No | Total published bundle size in bytes — check before iterating on a heavy page. | |
| workspace | No | The workspace this drop belongs to {id, slug, name, kind}. | |
| visibility | No | ||
| passwordProtected | No |